strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

add ESM support

Open 18alantom opened this issue 1 year ago • 0 comments

Allow sb to be used as an ESM import.

Example:

<head>
    <script type="importmap">
      { "imports": { "sb": "./sb.esm.js" } }
    </script>
</head>
<script type="module">
    import * as sb from 'sb';

    const data = sb.init();
</script>

18alantom avatar Oct 23 '23 05:10 18alantom