From 9ebf36b5719285fe4033256b2d78c729e48d1be3 Mon Sep 17 00:00:00 2001 From: PozzettiAndrea Date: Thu, 13 Aug 2026 11:41:01 +0200 Subject: [PATCH] Rename viewer bundles .js -> .mjs so they stop leaking into the main realm ComfyUI auto-imports every web/**/*.js into the shared main page; the four big bundles (three, vtk-gltf, viewer-bundle-vtk, gsplat) only ever run inside the viewer iframes but were getting pulled into the main document too, where they wrote window.THREE / window.vtk / globalThis.* and could collide with any other 3D pack. The **/*.js glob only matches .js, so renaming to .mjs drops them from the auto-import while the iframes still load them via classic + - + + + + + - + + +
diff --git a/javascript/viewer_vtk.html b/javascript/viewer_vtk.html index d649d72b..13f0a817 100644 --- a/javascript/viewer_vtk.html +++ b/javascript/viewer_vtk.html @@ -151,9 +151,9 @@
- + - + + - +