Skip to content

Commit

Permalink
fix: add sideEffects to main package.json to allow tree-shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 8, 2023
1 parent aadb6fe commit 6dac339
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "",
"repository": "unjs/unenv",
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -51,4 +52,4 @@
"unbuild": "^1.2.1"
},
"packageManager": "pnpm@8.6.12"
}
}
3 changes: 3 additions & 0 deletions src/runtime/polyfill/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"sideEffects": true
}

0 comments on commit 6dac339

Please sign in to comment.