Skip to content

Commit cc01752

Browse files
committed
chore: dedup three from examples
1 parent 4550eb9 commit cc01752

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@ const createIndex = () => ({
6060

6161
export default defineConfig({
6262
plugins: [createIndex()],
63+
resolve: {
64+
// Workspaces install their own copy of three; without dedupe the dev
65+
// server serves two or three instances and three.js prints the
66+
// "Multiple instances of Three.js being imported" warning.
67+
dedupe: ["three"],
68+
},
6369
});

0 commit comments

Comments
 (0)