Closed loynoir closed 3 years ago
This repo import esprima but without actually calling.
Under rollup tree shaking, expect bundle not include esprima.
However, bundle include esprima.
Add "sideEffects": false to node_modules/esprima/package.json. Then bundle will not include esprima.
"sideEffects": false
node_modules/esprima/package.json
Brief
This repo import esprima but without actually calling.
Under rollup tree shaking, expect bundle not include esprima.
However, bundle include esprima.
Workaround
Add
"sideEffects": false
tonode_modules/esprima/package.json
. Then bundle will not include esprima.