title: Vite error with optimized info should be defined when use GLTFLoader in React(ThreeJS)
body: <p>I use vite to build one react environment. When I import GLTFLoader from three module, and vite commandline mentioned that <code>Vite Error, /node_modules/.vite/deps/three_examples_jsm_loaders_GLTFLoader.js?v=9d4ee121 optimized info should be defined</code>.
  Here are codes:</p>
  <pre class="lang-js prettyprint-override"><code>import * as Three from &quot;three&quot;
  import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'
  
  
  ...
  
  const gltfLoader = new GLTFLoader()
      gltfLoader.setPath('public/')
      gltfLoader.load('000.hdr', gltf =&gt; {
          gltf.scene.scale.set(0.2,0.2,0.2)
  
          scenes.add(gltf.scene)
      })
  </code></pre>
  <p>Here are error message:
  <a href="https://i.stack.imgur.com/DMUlJ.png" rel="nofollow noreferrer">enter image description here</a></p>