3 ms·
Current versions of Babel default to having es7.asyncFunctions enabled.
by AgentME 11y ago
Current versions of Babel default to having es7.asyncFunctions enabled.
- ilaksh 11y agoSerms like I still need --optional runtime and babel-runtime though, right?
- AgentME 11y agoYou need to do that, or include the global polyfill: https://babeljs.io/docs/usage/polyfill/ https://babeljs.io/docs/usage/polyfill/. If you're writing a library, use the runtime option. If you're writing a website or other standalone app, you should use the polyfill (especially if you use other libraries like React which depend on ES6 globals too).