fix(build): use regex pattern for three.js externalization in rsplat
The string pattern "three/addons/" didn't match "three/examples/jsm/..." imports, causing vite build to fail on a clean Docker build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
600e9080d0
commit
d955d18af4
|
|
@ -1023,7 +1023,7 @@ export default defineConfig({
|
||||||
fileName: () => "folk-splat-viewer.js",
|
fileName: () => "folk-splat-viewer.js",
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["three", "three/addons/", "@mkkellogg/gaussian-splats-3d"],
|
external: [/^three($|\/)/, "@mkkellogg/gaussian-splats-3d"],
|
||||||
output: {
|
output: {
|
||||||
entryFileNames: "folk-splat-viewer.js",
|
entryFileNames: "folk-splat-viewer.js",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue