pmgl / microstudio

Free, open source game engine online
MIT License
936 stars 106 forks source link

Support ES Modules #191

Open iacore opened 1 year ago

iacore commented 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.

Most notably, esm.sh lets you load browser-compatible ES modules from npm.

import X from "https://esm.sh/xxxx"