-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
Webpack 5 target web, es5 error #658
Comments
Hey @gempir 👋, |
Tracked in #636, but this is not known before behavior |
Now that webpack and loadable-components has fixed most issues, I wanted to try this again. But I'm still running into the same error. Can anyone maybe give any hints what the problem is related to? Maybe some part of our babel is setup weirdly? Maybe a webpack option thats weird or something?
|
Compiling with target web works fine, because that doesn't use the browserlist, but if I compile with no webpack target it will default to browserlist which includes IE11
|
I have the same issue UPD: fixed by using globalObject: 'self' |
🐛 Bug Report
When using target ES5 in webpack I'm getting the error
To Reproduce
Use webpack 5 with target: ["web", "es5"]
Expected behavior
No error appears in the console
Issues without a reproduction link are likely to stall.
System Info
The text was updated successfully, but these errors were encountered: