|
|
|
|
|
by jampekka
944 days ago
|
|
So without tooling you need to specify the preload tags by hand. And of course import the modules in the JS. A simple sync and/or async function/statement would had solved the problem of having modules in the browser. E.g. RequireJS solved this in 2010 or so. There were straightforward proposals for native modules even before this. |
|
Yes. This is exactly what I want. It's helpful for simple apps, and without all the toolchain complexity more apps can be simple.
ES modules solve the problems I care about:
1) Eliminating the extra roundtrips.
2) Nice and simple syntax.
3) Tooling not required.