In the last episode, we looked at the new module syntax in ES6 and how it works with Node.js directly. While the module syntax was fairly simple and flexible, only exploring the node side of things left a big question:
How does this work in a browser?
In this episode, then, we'll look at what it takes to make ES6 modules work in today's browsers. We'll see how Babel compiles ES6 module syntax, and what we need to do with the compiled output so that a browser can work with it. We'll travel from ES6 modules, to browserify, and back!