You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #612 Don't make @babel/preset-env force all transforms in prod (Lyrkan)
This PR was merged into the master branch.
Discussion
----------
Don't make @babel/preset-env force all transforms in prod
This PR removes the `forceAllTransforms: webpackConfig.isProduction()` line that is currently added to `@babel/preset-env`'s options.
That setting was previously needed because UglifyJS did not support ES6 which meant that if you, for instance, had `async` functions in your code and targeted a recent browsers, they would have to be transformed for the minification process to be successful.
Nowadays we're using Terser which supports ES6, so there shouldn't be any issue keeping these kind of things in the final code anymore.
Commits
-------
b2809f5 Don't make @babel/preset-env force all transforms in prod
0 commit comments