Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

add ESM support#33

Draft
18alantom wants to merge 3 commits into
mainfrom
support-esm
Draft

add ESM support#33
18alantom wants to merge 3 commits into
mainfrom
support-esm

Conversation

@18alantom

@18alantom 18alantom commented Oct 23, 2023

Copy link
Copy Markdown
Owner

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>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant