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

Babel converts this to undefined #298

Open
jmzo opened this issue Jan 10, 2019 · 1 comment
Open

Babel converts this to undefined #298

jmzo opened this issue Jan 10, 2019 · 1 comment

Comments

@jmzo
Copy link

jmzo commented Jan 10, 2019

is.js/is.js

Line 25 in 5629495

}(this, function() {
After webpack compiles, this line in the vendor.js file looks like })(undefined, function () { which crashes at page load at return root.is = factory() since root is undefined.

What happened to this, why did it become undefined literal?

@jmzo jmzo changed the title Webpack Webpack converts this to undefined Jan 10, 2019
@jmzo jmzo changed the title Webpack converts this to undefined Babel converts this to undefined Jan 10, 2019
@jmzo
Copy link
Author

jmzo commented Jan 10, 2019

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