3 ms·
As others have mentioned there are node and browser specific presets you can use. Also opened a PR for discussion about adding an environment award preset in b
by hzoo 10y ago
As others have mentioned there are node and browser specific presets you can use.
Also opened a PR for discussion about adding an environment award preset in babel or supporting it in core at https://github.com/babel/babel/pull/3476 https://github.com/babel/babel/pull/3476.
- fooey 10y agoI'd love to see a Babel sort of thing that backs away from transpiling as much as possible and functions more as execution time polyfill. Maybe an http2 server that uses browser detection to push polyfills so that your app can just assume everything works without transpiling up front? I'm super hopeful http2 with es2015 modules will make web dev tooling drastically more streamlined in the nearish future.