diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 0ce6466..90b85a6 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -33,7 +33,7 @@ export default defineConfig(({ mode }) => { }) }, optimizeDeps: { - include: ['three', 'three/examples/jsm/loaders/GLTFLoader.js'], + include: ['three', 'three/addons/loaders/GLTFLoader.js'], esbuildOptions: { plugins: [ NodeGlobalsPolyfillPlugin({ @@ -50,14 +50,16 @@ export default defineConfig(({ mode }) => { util: 'util', assert: 'assert', }, - dedupe: ['three'] + dedupe: ['three'], + preserveSymlinks: false }, build: { rollupOptions: { output: { // Stelle sicher, dass three nicht externalisiert wird manualChunks: undefined - } + }, + external: [] // Explizit keine externen Module }, commonjsOptions: { include: [/three/, /node_modules/],