fix: mark dist files as having side effects

The index module registers built-in calendar engines at load time via
registerCalendar(). sideEffects:false was incorrect and could cause
bundlers to tree-shake those registration calls. Mark only the dist
entry points as having side effects so tree-shaking still works for
everything else.
This commit is contained in:
Aric Camarata 2026-02-25 14:14:42 -05:00
parent bb326d071c
commit b98ab39a13

View file

@ -13,7 +13,7 @@
"require": { "types": "./dist/index.d.ts", "default": "./dist/index.cjs" }
}
},
"sideEffects": false,
"sideEffects": ["./dist/index.cjs", "./dist/index.mjs"],
"files": [
"dist/index.cjs",
"dist/index.mjs",