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:
Jeff Emmett 2026-03-15 01:28:31 -07:00
parent 600e9080d0
commit d955d18af4
1 changed files with 1 additions and 1 deletions

View File

@ -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",
}, },