Closed rjgotten closed 4 years ago
This is because you have to disable the generator options in @babel/preset-env
. Like so:
module.exports = {
presets: [
['@babel/env', {
modules: false,
targets: {
browsers: ['last 2 Chrome versions'],
},
exclude: [
'transform-async-to-generator',
'transform-regenerator',
],
}],
],
plugins: [
['module:fast-async', {
spec: true,
}],
],
}
Yup. I just noticed this myself as well. The config I was working off of, was only disabling regenerator, and not the actual async-to-generator transformation. Doh! (Of all the stupid oversights...)
Closing this, as it's invalid.
Even when specifying
generators:false
a source functiongenerates
which continues to use generators.
Using fast-async 7.0.6