You can also export globals from a module with window.THREE = THREE
. I don’t really recommend that, it can break as soon as you bring in any external three.js libraries as described in ES6 modules + other THREE libraries. Using modules consistently works, or a simple bundler like Parcel can be helpful.