Skip to content

Visualize Your Ideas With Code

fix: remove dependency pre-bundling warning (#676)

Jacob38c81ffa5ea0
diff --git a/packages/docs/docs/getting-started/quickstart.mdx b/packages/docs/docs/getting-started/quickstart.mdx
index 2f6872d2..3c8c9a70 100644
--- a/packages/docs/docs/getting-started/quickstart.mdx
+++ b/packages/docs/docs/getting-started/quickstart.mdx
@@ -64,9 +64,7 @@ To complete the scaffolding process, you'll need to run the following commands:
```shell
npm run serve
```
- You may see a yellow error message in the terminal saying "Could not
- auto-determine entry point", but it's not important, and you can safely
- ignore it. The editor can be accessed by visiting
+ The editor can be accessed by visiting
[http://localhost:9000/](http://localhost:9000/). We'll use it to preview our
animation, although for now there's not much to see.
diff --git a/packages/vite-plugin/src/main.ts b/packages/vite-plugin/src/main.ts
index d7a7aa49..65572c4b 100644
--- a/packages/vite-plugin/src/main.ts
+++ b/packages/vite-plugin/src/main.ts
@@ -434,6 +434,9 @@ export default ({
jsx: 'automatic',
jsxImportSource: '@motion-canvas/2d/lib',
},
+ optimizeDeps: {
+ entries: projects.map(project => project.url),
+ },
};
},
};