-
Confused why Babel is transforming my already ES5 javascript?!
-
So, it seems Babel transpiles your JS into CommonJS modules - even if it was working fine before
-
If you want it to then work in your browser, you need to _then_ compile it with browserify. (thanks to thesocietea.org/2016/01/building-es6-javascript-for-the-browser-with-gulp-babel-and-more/)
-
All I wanted to do was use let/const, arrow functions and write neater code. I don’t want all this module nonsense.