Skip to content

Commit a389fe8

Browse files
authored
fix: mark package as side-effect free (#305)
[Tree shaking](https://webpack.js.org/guides/tree-shaking/) results in smaller web bundles by deleting unused code. This module is side-effect free so mark it as such to signal to bundlers that unused exports can be excluded from bundles.
1 parent c3fbb18 commit a389fe8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.aegir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
/** @type {import('aegir').PartialOptions} */
33
export default {
44
build: {
5-
bundlesizeMax: '143KB'
5+
bundlesizeMax: '60KB'
66
}
77
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,6 @@
183183
"@libp2p/peer-id-factory": "^4.0.2",
184184
"aegir": "^42.1.1",
185185
"protons": "^7.3.3"
186-
}
186+
},
187+
"sideEffects": false
187188
}

0 commit comments

Comments
 (0)