Open dy opened 4 years ago
Adding .babelrc
:
{
"plugins": [
"@babel/plugin-syntax-async-generators",
"@babel/plugin-proposal-async-generator-functions"
]
}
doesn't help.
It seems to ignore .babelrc
at all.
Hmm, you definitely should be able to use it via your own custom babelrc, like in the example above.
We wouldn't support this in @pika/plugin-standard-pkg directly, since this is still proposed syntax and hasn't yet been added to the language spec (see https://tc39.es/proposal-async-iteration/)
I actually can reproduce this but even when running babel.loadOptions()
directly in a directory with a .babelrc file. I was able to fix this by renaming my .babelrc
to babel.config.json
. Try that and let me know if that works.
Has .babelrc
been deprecated in favor of the newer babel.config.json
? If so, we can add a warning message to help.
Getting the following error in attempt to build pika:
Is there any way to work that around?