Skip to content

Commit 6e04496

Browse files
authored
fix: mark rapier3d-compat as external and optimize deps (#153)
1 parent d1608f5 commit 6e04496

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default defineConfig({
5252
open: true,
5353
}), */
5454
],
55-
external: ['three', 'vue', '@tresjs/core'],
55+
external: ['three', 'vue', '@tresjs/core', '@dimforge/rapier3d-compat'],
5656
output: {
5757
exports: 'named',
5858
// Provide global variables to use in the UMD build
@@ -61,11 +61,12 @@ export default defineConfig({
6161
'@tresjs/core': 'TresjsCore',
6262
'three': 'Three',
6363
'vue': 'Vue',
64+
'@dimforge/rapier3d-compat': 'Rapier3dCompat',
6465
},
6566
},
6667
},
6768
},
6869
optimizeDeps: {
69-
exclude: ['three', 'vue', '@tresjs/core'],
70+
exclude: ['three', 'vue', '@tresjs/core', '@dimforge/rapier3d-compat'],
7071
},
7172
})

0 commit comments

Comments
 (0)