Open iacore opened 1 year ago
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.
type="module"
Most notably, esm.sh lets you load browser-compatible ES modules from npm.
import X from "https://esm.sh/xxxx"
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"