-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
Main IIFE is an arrow function #885
Comments
Same for me .
Just one point - on webpack |
@nemmtor it's not loader issue, this function is provided by webpack itself the link https://webpack.js.org/configuration/output/#outputenvironment was really helpful output: {
path: path.resolve(__dirname, './dist'),
filename: 'index_bundle.js',
// next do the trick
environment: {
arrowFunction: false, // <-----
}
}, |
Yup, that's injected by webpack after running Babel. I'm keeping this open in case anyone wants to add a mention of this problem and how to solve it to the README. |
I will make a PR today |
Fixed in #886 |
I'm submitting a bug report
Webpack Version:
5.8.0
Babel Core Version:
7.12.9
Babel Loader Version:
8.2.2
Please tell us about your environment:
Linux
Current behavior:
Basically all works good but the whole bundle is wrapped inside IIFE which is an arrow function, I think it shouldn't be like that since im using babel properly - with @babel/preset-env
Expected/desired behavior:
Wraps bundle in IIFE normal func
The text was updated successfully, but these errors were encountered: