feat: mark the snabbdom package as side effect free

This is useful for bundlers. When dealing with reexports, this setting
allows e.g. webpack to optimize reexports. See the webpack documentation
for more information about this setting
pull/956/head
Jan van Brügge 4 years ago
parent 30b7df61ab
commit 852401345e
No known key found for this signature in database
GPG Key ID: 88E0BF7B7A546481

@ -24,6 +24,7 @@
},
"main": "build/snabbdom.cjs.js",
"module": "build/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc && npm run bundle:cjs",
"bundle:cjs": "rollup build/index.js --format cjs --file build/snabbdom.cjs.js",

Loading…
Cancel
Save