strawberry
strawberry copied to clipboard
add ESM support
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>