mikestreety’s avatarmikestreety’s Twitter Archive—№ 20,400

      1. Confused why Babel is transforming my already ES5 javascript?!
    1. …in reply to @mikestreety
      So, it seems Babel transpiles your JS into CommonJS modules - even if it was working fine before
  1. …in reply to @mikestreety
    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/)
    1. …in reply to @mikestreety
      All I wanted to do was use let/const, arrow functions and write neater code. I don’t want all this module nonsense.