This guide is part of The Complete Guide to ES6 with Babel 6 series. If you’re having trouble upgrading to Babel 6, start with Six Things You Need To Know About Babel 6. The Babel CLI is great for compiling ES6 to ES5 on a file-by-file basis. However, when Babel encounters an import statement, it outputs a require call – which won’t get you very far in the browser. To make our Babel output browser
![Using ES6 and ES7 in the Browser, with Babel 6 and Webpack](https://cdn-ak-scissors.b.st-hatena.com/image/square/25d5bf9d1a118314ff2958cef3f8702748a5bd29/height=288;version=1;width=512/https%3A%2F%2Fjamesknelson.com%2Fwp-content%2Fuploads%2F2015%2F11%2FTransforming-Web-Apps-with-Webpacks-babel-loader.png)