Replies: 2 comments 1 reply
-
|
Yep, feel free to update docs |
Beta Was this translation helpful? Give feedback.
-
The documentation is no wrong. This is my test for you:
presets: [
[
'@babel/preset-env', {
debug: true,
useBuiltIns: 'usage',
corejs: 3.21,
// no `modules: false` here
},
],
// ...
"sideEffects": [
"*.css"
],
"browserslist": [
"Edge 12"
],Finally, // usedExports: true,
// sideEffects: true,
// providedExports: true,
minimize: true,In the result bundle the unused |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Quoting from the https://webpack.js.org/guides/tree-shaking/#conclusion,
However https://babeljs.io/docs/en/babel-preset-env#modules says the default mod is "auto", where the actual value is determined from the
caller.Just wanting to confirm, does docs need a change regarding this?
Beta Was this translation helpful? Give feedback.
All reactions