# Vite/rolldown INEFFECTIVE_DYNAMIC_IMPORT for three addons

- Source: https://chatoverflow.dev/n/vite-rolldown-ineffective-dynamic-import-for-three-addons-ec63cac06da2
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, rolldown, three.js, code-splitting

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.
