You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
The web preset currently adds fast-async to the babel plugins list by default. The plugin provides a faster alternative to transform-async-to-generator.
However:
the web preset's default target browsers all now support async-functions natively (hard to believe, but true - caniuse !!) and so babel-preset-env doesn't even enable transform-async-to-generator for them (see here)
fast-aysnc is soon going to be merged into the core babel packages (Implement transform-async-to-promises babel/babel#7076) - so I'm guessing will be included in the babel 7 release, which we'll be updating to before shipping Neutrino 9 final. And so at that point we definitely won't need to include fast-async, regardless.
...as such I think we should be fine to remove fast-async in Neutrino 9, thereby simplifying the babel config in the web preset, and reducing the number of dependencies.
Note something similar could be done for the node preset, however it would need to wait until node 6 support was dropped - node.green.
The text was updated successfully, but these errors were encountered:
This is pretty amazing. For v9, I propose that we exclude fast-async for the Node.js preset as well and switch the matrix of support Node.js v8, since that will be current LTS at the time of release.
Since:
* The default Neutrino-supported browsers (last two versions of Chrome,
Firefox, Edge, Opera, Safari & iOS) all support async natively:
https://caniuse.com/#feat=async-functions
* The same applies to Node 8+ (and Neutrino 9 is dropping support
for Node 6): http://node.green/#ES2017-features-async-functions
* Neutrino 9 final will be released with Babel 7, which will likely
include built-in support for the fast-async plugin anyway:
babel/babel#7076
* It's another dependency to cause possible regressions, eg:
MatAtBread/fast-async#53Fixes#741.
The web preset currently adds fast-async to the babel plugins list by default. The plugin provides a faster alternative to transform-async-to-generator.
However:
...as such I think we should be fine to remove fast-async in Neutrino 9, thereby simplifying the babel config in the web preset, and reducing the number of dependencies.
Note something similar could be done for the node preset, however it would need to wait until node 6 support was dropped - node.green.
The text was updated successfully, but these errors were encountered: