-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown Plugin "transform-es2015-block-scoping" #121
Comments
Babel was introduced into 3.0.0 to enable mocking of const variables. Could you give example code so I can reproduce this error? |
Checkout https://github.com/wdullaer/oplog-emitter and run |
Thx! I opened a PR that should fix this. see #122. |
Cool! |
Awesome, thanks. Sorry for the broken version. I think I've used Shipped with |
Since upgrading to rewire 3.0.0 some of my builds are failing because babel can't load the "transform-es2015-block-scoping" plugin.
The stacktrace indicates that rewire is trying to load this (my own code does not rely on babel).
You can see at the top of the stactrace that babel is looking for
node_modules
in the directory where the rewired file lives, rather than the current working directory.Some research (babel/babel#5618) seems to indicate that this is a known issue with babel 6.
As of babel 7, babel will try to resolve plugins relative to the cwd, or, you could explicitly specify the location of the plugin using
babel.resolvePlugin('foo', '/my-dir')
If you know of any other workaround, I'm all ears :-)
Stacktrace:
The text was updated successfully, but these errors were encountered: