0

I'm running this in the browser as an html page and not using npm etc :

<script type="module">
    import {someModule1, someModule2} from 'https://somewhere.com/some-package.min.js';
</script>

<script>
    class mySomeModule1 extends someModule1
    {

    }
</script>

someModule1 is not defined

This works only if its in the same script tag :

<script type="module">
    import {someModule1, someModule2} from 'https://somewhere.com/some-packages.min.js';

    class mySomeModule1 extends someModule1
    {

    }
</script>

Is there any way to get this working in separate script tags ? Or is using window the only way out ?

anjanesh
  • 3,771
  • 7
  • 44
  • 58

0 Answers0