Closed neoddish closed 4 years ago
There has two ways to resolve your problem:
import 'regenerator-runtime';
at the first line in your command file..babelrc
file with following content into root directory of your project:
{
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
]
}
I think the second is a good solution and open a pull request skpm/skpm#281 to resolve it. It will work well with default config after the pull request merged.
As this discussion metioned.
the async/await in my demo does not work if I did not
npm install @babel/polyfill
and add the codeinto
webpack.skpm.config.js
.After doing this, it works. However, every time I run the plugin again, the console throws: