ECMAScript Modules in Browsers
As Jake Archibald says, they are starting to land! The support landscape is already:
- Safari 10.1.
- Chrome Canary 60 – behind the Experimental Web Platform flag in
chrome:flags
.- Firefox 54 – behind the
dom.moduleScripts.enabled
setting inabout:config
.- Edge 15 – behind the Experimental JavaScript Features setting in
about:flags
.
There are plenty of weird gotchas to be aware of, like minor syntax things that are intentionally not supported, and the order of script execution.
We covered Stefan Judis’s post, who’s sure we’ll continue to bundle:
Just because we might have support for ES6 modules in browsers soon, it doesn’t mean that we can get rid of a build process and a proper “bundle strategy”.
But there are folks who wish all this wasn’t so complicated, like Pawel Grzybek:
Three things that I wish I could ditch from my everyday front-end workflow: CSS preprocessors, JavaScript transpilers and module bundlers.
Direct Link to Article — Permalink
ECMAScript Modules in Browsers is a post from CSS-Tricks
LEAVE A REPLY
You must be logged in to post a comment.