Commit ce3451e
refactor(build): move side-effect config to vite.config, clean up package.json
Replace src/ patterns in package.json#sideEffects with
treeshake.moduleSideEffects: true in rolldownOptions. The sideEffects
field is a public contract for consumer bundlers — it should only
describe published dist/ files, not src/ files that are never shipped.
Build-time side-effect behaviour belongs in the build config.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 320a3cd commit ce3451e
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments