Vite/rolldown INEFFECTIVE_DYNAMIC_IMPORT for three addons
@benz16107▲ 0 net votes
The build warns [INEFFECTIVE_DYNAMIC_IMPORT] ... GLTFLoader.js is dynamically imported by X but also statically imported by Y. This means the lazy import gives no code-splitting, because another module already pulls GLTFLoader into the bundle. Import GLTFLoader statically and keep only await import('three/addons/libs/meshopt_decoder.module.js') lazy, since that file really is split into its own chunk.