Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
feat: add no side effects optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
csvenke committed Apr 7, 2020
1 parent 68b8aec commit f5cbd88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"main": "index.cjs.js",
"module": "index.esm.js",
"types": "index.d.ts",
"sideEffects": false,
"scripts": {
"build": "rm -rf dist && rollup -c",
"build:copy": "cp package.json dist/ && cp README.md dist/ && cp LICENSE dist/ && cp src/index.d.ts dist/",
Expand Down
3 changes: 3 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const defaultConfig = {
}),
terser(),
],
treeshake: {
moduleSideEffects: false,
},
};

const createConfig = (config) => ({
Expand Down

0 comments on commit f5cbd88

Please sign in to comment.