microstudio
microstudio copied to clipboard
Support ES Modules
The ECMAScript module system helps with code organization.
Currently, all JS scripts are loaded in "script mode". If they are ES Modules (loaded with type="module"), they can use other ES Modules as well.
Most notably, esm.sh lets you load browser-compatible ES modules from npm.
import X from "https://esm.sh/xxxx"