A couple of days ago on the WHATWG Blog there was a post about a new value being added to the script tag: type=module
. You can use it like this:
<script type="module" src="/my/app.js"></script>
Where /my/app.js looks like:
import utils from "./utils.js";
...
And so on. This is awesome. You might be thinking this means you can load your React / Angular / DoneJS app using