mirror of
https://github.com/acamarata/hijri-core.git
synced 2026-06-30 18:54:27 +00:00
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:
parent
bb326d071c
commit
b98ab39a13
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue