Skip to content
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

False bailout for require. #17

Open
jdalton opened this issue Aug 28, 2017 · 0 comments
Open

False bailout for require. #17

jdalton opened this issue Aug 28, 2017 · 0 comments

Comments

@jdalton
Copy link

jdalton commented Aug 28, 2017

I'm seeing

WARNING in global bailout from webpack-common-shake
Invalid use of `require` at [/path/to//esm/src/module/make-require-function.js:35:9]

Which looks like this. It's being babel transpiled back to cjs and scope hoisted with webpack. The plugin is bailing out because it's seeing the use of require without checking that it's a local reference and not the environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant