-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Labels
Description
Related:
With r138 the following syntax was introduced:
import { NormalNode } from 'three-nodes/Nodes.js';I do not think we should be using bare imports (except three) unless we are publishing it to a separate NPM package. Bundlers cannot resolve three-nodes without custom resolution configuration, and we're seeing confusion about this in Discord. By contrast, anything under the three import is fine if we configure it in package.json exports:
import { NormalNode } from 'three/nodes/Nodes.js';/cc @sunag
gkjohnson, vanruesc, marcofugaro, gsimone, wmcmurray and 3 morewmcmurray