For anyone interested in using ES2015/ES6 in production, I'd highly recommend checking out jspm and SystemJS.
It handles all the transpilation work for you (at runtime for development, or during a manual build/bundling for production) using either Babel, Traceur or Typescript, and allows you to seamlessly use ES6 everywhere in your code and even load third party code on Github and NPM as ES6 modules.
It handles all the transpilation work for you (at runtime for development, or during a manual build/bundling for production) using either Babel, Traceur or Typescript, and allows you to seamlessly use ES6 everywhere in your code and even load third party code on Github and NPM as ES6 modules.
https://github.com/jspm/jspm-cli
https://github.com/systemjs/systemjs
EDIT: Some more info copied from another post:
SystemJS (jspm's module loader) has the following main advantages compared to competing module loaders:
- Able to load any type of module as any other type of module (global, CommonJS, AMD, ES6)
- Can handle transpilation and module loading at runtime without requiring a manual build step
However, jspm itself is primarily a package manager. Its main advantages over existing package management solutions include:
- Tight integration with the SystemJS module loader for ES6 usage
- Maintains a flat dependency hierarchy with deduplication
- Ability to override package.json configuration for any dependency
- Allows loading of packages from just about any source (local git repos, Github, NPM) as any module format