diff --git a/.changeset/side-effects-false.md b/.changeset/side-effects-false.md new file mode 100644 index 0000000..c49a58f --- /dev/null +++ b/.changeset/side-effects-false.md @@ -0,0 +1,5 @@ +--- +"react-fast-compare": patch +--- + +Add `"sideEffects": false` to `package.json` so bundlers can drop the module when it's imported but unused. diff --git a/pack-snapshot.json b/pack-snapshot.json index fd75ee7..604e1bd 100644 --- a/pack-snapshot.json +++ b/pack-snapshot.json @@ -4,6 +4,7 @@ "main": "index.js", "types": "index.d.ts", "typings": "index.d.ts", + "sideEffects": false, "files": [ "index.js", "index.d.ts" diff --git a/package.json b/package.json index adde800..44d14bc 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.", "main": "index.js", "typings": "index.d.ts", + "sideEffects": false, "scripts": { "check": "pnpm format && pnpm lint && pnpm lint:gha && pnpm types:check && pnpm test && pnpm pack:check", "format": "oxfmt --check",