Skip to content

Visualize Your Ideas With Code

fix(core): fix tree shaking (#555)

Jacob8de199eaf833
diff --git a/packages/core/package.json b/packages/core/package.json
index 95832463..046741cd 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -12,7 +12,9 @@
"watch": "ttsc -p tsconfig.build.json -w",
"test": "vitest"
},
- "sideEffects": false,
+ "sideEffects": [
+ "./lib/types/Color.js"
+ ],
"repository": {
"type": "git",
"url": "https://github.com/motion-canvas/motion-canvas.git"