3 ms·
I like the idea of Babel, but would prefer it as a sort of compile-for-production step. The performance and debugging complexity don't seem worth it as part of
by themgt 11y ago
I like the idea of Babel, but would prefer it as a sort of compile-for-production step. The performance and debugging complexity don't seem worth it as part of the development process. Seems like it'd now be possible w/ Node v6 and a modern browser to develop "live" in (93% of) ES6 and then just Babel-compile to ES5 for backwards compat at the end?
Which unfortunately loses the ES7 features.
- shados 11y agoyou can have different configs for prod vs dev. Just compile the features your dev browsers don't support. Done.
- hzoo 11y agoYou can use the env option to change the transforms per env http://babeljs.io/docs/usage/babelrc/#env-option http://babeljs.io/docs/usage/babelrc/#env-option
- tracker1 11y agouse babel-node (babel-cli) against src/ in dev, build and run against dist/ in prod.