4 later thoughts

0

Rollup notes:

  • Don’t name your module or file something with a dash. globals.my-module = ... is no good.
  • Rollup plugin order matters: [ npm({jsnext : true}), commonjs({ignoreGlobal : true}), babel() ] worked when flipping last two didn’t.
  • Add sourceMap: true, sourceMapFile: 'module.js.map' in your Rollup config. And use resulting sourcemaps in Node: https://github.com/evanw/node-source-map-support. It’s easy!