-
-
Notifications
You must be signed in to change notification settings - Fork 451
Closed
Description
Some presets, such as 'es2015' will transpile ES6 modules to commonjs. This works fine, but it prevents webpack performing treeshaking, meaning bundles could be unnecessarily larger.
Is there any reason users would want to transpile to commonjs at this point in the pipeline? If not, babel-loader could attempt to change the default here, or at least display a warning if it detects this kind of transpilation occurring.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels