Skip to content

Commit

Permalink
feat(size): add sideEffects false to package.json (#2861)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Haroenv authored and bobylito committed Apr 5, 2018
1 parent 9c07ec1 commit f5d1ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"main": "dist-es5-module/index.js",
"module": "./es/index.js",
"jsdelivr": "dist/instantsearch.min.js",
"sideEffects": false,
"scripts": {
"build": "./scripts/build.sh",
"dev": "./scripts/dev.sh",
Expand Down

0 comments on commit f5d1ab1

Please sign in to comment.