chore: declare sideEffects allowlist for tree-shaking

Without the field, Rollup treats every module as potentially side-effectful
and cannot drop unused re-exports pulled through barrels. Audited all
import-time side effects: only CSS and the two bare side-effect imports
(router.ts, bindings.svelte.ts) must be preserved; module-level store
singletons ride their export usage and need no listing. Trims the bundle
~8 KB raw / ~2.4 KB gzip.
This commit is contained in:
Ilia Mashkov
2026-05-31 20:06:22 +03:00
parent 36673597f7
commit a9f3b990ab
+5
View File
@@ -4,6 +4,11 @@
"version": "0.0.1",
"packageManager": "yarn@4.11.0",
"type": "module",
"sideEffects": [
"*.css",
"**/router.ts",
"**/bindings.svelte.ts"
],
"scripts": {
"dev": "vite",
"build": "vite build",