Skip to content

Commit f5d1ab1

Browse files
Haroenvbobylito
authored andcommitted
feat(size): add sideEffects false to package.json (#2861)
Why is this done? see <https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free> Long story short, modules can do crazy things, but if we don't do any polyfilling, we can opt into better behaviour fixes #2859 as good as we can for now
1 parent 9c07ec1 commit f5d1ab1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"main": "dist-es5-module/index.js",
1515
"module": "./es/index.js",
1616
"jsdelivr": "dist/instantsearch.min.js",
17+
"sideEffects": false,
1718
"scripts": {
1819
"build": "./scripts/build.sh",
1920
"dev": "./scripts/dev.sh",

0 commit comments

Comments
 (0)