-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed
Description
Description
When using the WebGPU build introduced in r167 with vite, using recommended aliases configuration, I am unable to use renderer agnostic exports from libraries that also have webgl imports. Bundlers will have errors attempting to import webgl specific imports that are not exported by the webgpu build.
Solution
If the three/webgpu build re-exported from three, aliases would not be required to use the webgpu build with bundlers, and libraries could export both webgl and webgpu utilities that import from both three and three/webgpu.
Alternatives
A build that has both webgl and webgpu exports could solve some issues, but this is not as desirable as the proposed solution as bundler aliases would still be required to prevent duplication issues.
Additional context
RenaudRohlinger, verekia, DennisSmolek, hybridherbst, donmccurdy and 6 more