I want to write a js library the modern way that means:
- write it in ES6
- use the module loader (import/export) for peace of mind
- build a package that is compatible both with the browser and node.js
- have a developer friendly setup (watcher and reloader during development session)
- Rollup to bundle all the things
- Babel to transpile the code
npm start
to begin the development sessionnpm run browser
and go to http://localhost:8080npm run node