0

If I have an inline script module like this,

<script type="module">
  export const FOO = 3;
</script>

how can I import from it in another module, i.e:

<script type="module">
  export const FOO = 3;
</script>
<script type="module">
  import { FOO } from ???;
  const BAR = FOO + 1;
</script>
Timmmm
  • 88,195
  • 71
  • 364
  • 509

0 Answers0