Replies: 2 comments
-
react-three-fiber is shipped as a module, and has peer deps as modules (see without build tools docs). I'd see Josh's previous comment about UMD support. What is your motivation behind using external scripts? Are you not able to use modules? Maybe we can resolve your use case in a discussion. |
Beta Was this translation helpful? Give feedback.
-
well, i have a scene that u can import dynamic component to an screen editor (why using external scripts), like below: The component that coded by three.js and build to a bundle.js can work well after import into this editor, actually i can use native three.js to finish it ,but i find react-three/fiber is more convenient and powerful |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
conflict with webpack externals react😭
it can't work correctly when i use externals react,like below:
part of
craco.config.js
index.html
Result: it render nothing,and freeze this page,and can't reload
😭😭😭😭
when i remove the scipt and externals, it work well, like below !!!
i have no idea to fix this one, i try to pull the code and config preconstruct globals ,and push to my private npm;
even change to webpack, build umd and so on...🤡
Beta Was this translation helpful? Give feedback.
All reactions