Closed jacob-ebey closed 2 years ago
Add "sideEffects": false to package.json to allow frameworks that mix client and server code in the same files to tree-shake out fs-extra from client bundles.
"sideEffects": false
I've never heard of this key; what bundlers use it? Where's it documented?
All of them: https://esbuild.github.io/api/#conditionally-injecting-a-file https://webpack.js.org/guides/tree-shaking/ https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/13.0.6#user-content-ignoresideeffectsforroot
🎉🥳 Thank you! When can we look forward to a release?
Published v10.0.1
Add
"sideEffects": false
to package.json to allow frameworks that mix client and server code in the same files to tree-shake out fs-extra from client bundles.