Currently, import * as THREE from 'three' is used throughout the project, which always forces the entire Three.js package to be bundled with your app when using Drei.
Suggested implementation:
Replace import * as THREE from 'three' statements with named imports:
- import * as THREE from 'three';
+ import { dependency1, dependency2, dependency3... } from 'three';
Describe the feature you'd like:
Currently,
import * as THREE from 'three'
is used throughout the project, which always forces the entire Three.js package to be bundled with your app when using Drei.Suggested implementation:
Replace
import * as THREE from 'three'
statements with named imports: