You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug/Packaging] IIFE logs “Multiple instances of Three.js being imported” #91
Model: 2,547 elements (2,264 with geometry), 12 Revit categories, structural
Summary. Loading dist/vim-web.iife.js prints three.js's multi-instance warning on every
page load:
WARNING: Multiple instances of Three.js being imported.
Likely cause. three appears to be bundled more than once (or a dependency bundles its own
copy) inside the IIFE rather than deduped to a single instance.
Impact. Beyond bundle size, multiple three instances can cause instanceof / material /
class-identity mismatches. (In our app VIM.THREE.Color worked for color overrides, so the
public VIM.THREE is at least the renderer's instance — but the warning suggests an internal
duplicate worth removing.)
Ask. Dedupe three to a single instance in the build (e.g. resolve/alias all three
imports to one copy).
Activity