My side-projects and experiments (like the WebGL2 "minecraft-y" demo - https://mrspeaker.github.io/webgl2-voxels/) now work out of the box: no build system, no transpilers, no dot-files. Happy day!
My side-projects and experiments (like the WebGL2 "minecraft-y" demo - https://mrspeaker.github.io/webgl2-voxels/) now work out of the box: no build system, no transpilers, no dot-files. Happy day!
But performance seems a little inconsistent in production. For iOS Safari in particular, I've had apps take over a minute to load via modules, versus seconds when bundled. So I stick to rollup for deploy (maybe http2 is supposed to fix this?)
(great demo btw!)
For something shorter, the import[1] and export[2] pages on MDN are great. These pages also have some useful related articles linked at the bottom.
Unrelated side note: MDN and Mozilla Hacks are doing an incredible job documenting web development and web standards.
[0] https://hacks.mozilla.org/2015/08/es6-in-depth-modules/
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...