title: js code with type="module" is doesn't work in my vr environment
body: <p>I work in a vr environement codding with A-FRAME, I use <a href="https://github.com/supermedium/superframe/tree/master/components/log/" rel="nofollow noreferrer">https://github.com/supermedium/superframe/tree/master/components/log/</a> to prints logs in vr environement.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;head&gt;
    &lt;title&gt;My A-Frame Scene&lt;/title&gt;
    &lt;script src=&quot;https://aframe.io/releases/0.9.0/aframe.min.js&quot;&gt;&lt;/script&gt;
    &lt;script src=&quot;https://unpkg.com/aframe-log-component/dist/aframe-log-component.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;module&quot; src=&quot;./f1.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;module&quot; src=&quot;./f2.js&quot;&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;a-scene id='main_scene'&gt;
      &lt;a-entity log=&quot;channel:c1&quot; geometry=&quot;primitive: plane&quot; material=&quot;color: #111&quot; text=&quot;color: lightgreen&quot; position=&quot;0 0 -4&quot;&gt;&lt;/a-entity&gt;
    &lt;/a-scene&gt;
  &lt;/body&gt;
  </code></pre>
  <p>And in my js I have this:</p>
  <pre class="lang-js prettyprint-override"><code>//f1.js
  import foo from 'f2.js'
  
  function f(ts){
    //...
    $('#main_scene').append('&lt;a-entity obj'+ts.name+'&gt;&lt;/a-entity&gt;');
    AFRAME.registerComponent(
        'obj'+ts.name,
        {
            init:function(){
                var el = this.el;
                el.setAttribute(&quot;geometry&quot;,&quot;primitive:box;depth:&quot;+0.01+&quot;;height:&quot;+0.06+&quot;;width:&quot;+0.04);
                el.setAttribute('color',&quot;#027523&quot;);
                el.setAttribute('position',{x:ts.x,y:ts.y,z:ts.z});
                el.setAttribute('rotation',{x:0,y:ts.orientation,z:0});
            },
            tick: function(){
                foo();
            },
        }
    );
    //...
  }
  //f2.js
  function foo(){
    AFRAME.log(&quot;hello&quot;,'c1')
  }
  export default foo
  </code></pre>
  <p>In firefox browsers if i don't use vr It works, but with vr glasses doesn't work. In vr, the object is not created. When I don't use type=&quot;module&quot; and I'm codding in a single script, it's works (the problem is not with the logs but with the objects that are not &quot;created&quot;)</p>