Hi, I have a three.js app made with version < 100.
I want to upgrade it to the latest release but I have many functions and classes that are included
through a script TAG, in HTML, that are not modules and expect THREE to exist.
Is there a simple way to include the Three.js module as the old way, in a global THREE variable?
<script type="module"> // part 1 import * as THREE from './../node_modules/three/build/three.module.js'; window.THREE=THREE; <script> <script> // part 2 var a=new THREE.Scene(); <script>
But If I step into the code part 2 seems to execute before part 1