Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Does not seem to work with babel #46

@tituswoo

Description

@tituswoo

Love this plugin. However I seem to be having some issues with the plugin/preset run ordering... Given the following .babelrc file:

{
  "presets": ["react", "es2015", "stage-0"],
  "plugins": [
    [ "webpack-alias", { "config": "${PWD}/webpack.config.babel.js" } ]
  ],
  "ignore": [
    "dist/*"
  ]
}

I get the following error when running babel src -d dist in my terminal:

Unexpected token import

What's weird though is if I remove the webpack-alias plugin, everything compiles correctly. Interestingly, if I use webpack-alias with node-babel, it also works. Only when I use babel from the babel-cli package do I get the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions