Skip to content

Commit

Permalink
fix: add sideEffects: false to package.json (#485)
Browse files Browse the repository at this point in the history
To enable tree shaking, add this to all modules.
  • Loading branch information
achingbrain authored Apr 9, 2024
1 parent 329652a commit 8c45267
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 13 deletions.
3 changes: 2 additions & 1 deletion packages/car/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@
"blockstore-core": "^4.4.0",
"ipfs-unixfs-importer": "^15.2.4",
"it-to-buffer": "^4.0.5"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/dag-cbor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,6 @@
"devDependencies": {
"aegir": "^42.2.5",
"blockstore-core": "^4.4.0"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/dag-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@
"devDependencies": {
"aegir": "^42.2.5",
"blockstore-core": "^4.4.0"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/helia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@
},
"browser": {
"./dist/src/utils/libp2p-defaults.js": "./dist/src/utils/libp2p-defaults.browser.js"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@
"multiformats": "^13.1.0",
"sinon": "^17.0.1",
"sinon-ts": "^2.0.0"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@
},
"devDependencies": {
"aegir": "^42.2.5"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@
"./dist/src/fixtures/create-kubo.js": "./dist/src/fixtures/create-kubo.browser.js",
"./dist/src/bin.js": "./dist/src/index.js",
"kubo": false
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/ipns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,6 @@
},
"browser": {
"./dist/src/dns-resolvers/resolver.js": "./dist/src/dns-resolvers/resolver.browser.js"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,6 @@
"devDependencies": {
"aegir": "^42.2.5",
"blockstore-core": "^4.4.0"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/mfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,6 @@
"it-last": "^3.0.4",
"it-to-buffer": "^4.0.5",
"uint8arrays": "^5.0.2"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/strings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,6 @@
"devDependencies": {
"aegir": "^42.2.5",
"blockstore-core": "^4.4.0"
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/unixfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,6 @@
"fs": false,
"path": false,
"url": false
}
},
"sideEffects": false
}
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@
},
"browser": {
"./dist/src/utils/libp2p-defaults.js": "./dist/src/utils/libp2p-defaults.browser.js"
}
},
"sideEffects": false
}

0 comments on commit 8c45267

Please sign in to comment.