We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to run the example project I get the following error:
[main.build.js?id=9121733:1]: ReferenceError: regeneratorRuntime is not defined
O fixed it installing the babel-polyfill and adding it to the main.js file
The text was updated successfully, but these errors were encountered:
hello~
I first write .bablerc like this:
.bablerc
{ "presets": [ [ "env", { "modules": false, "targets": { "browsers": [ "> 1%", "last 3 versions", "ie >= 9", "ios >= 8", "android >= 4.2" ] }, "useBuiltIns": "usage" } ], "stage-2" ] }
And I don't add import 'babel-polyfill' in my entry file app.js.
import 'babel-polyfill'
app.js
It shows the error regeneratorRuntime is not defined.
regeneratorRuntime is not defined
So I add import 'babel-polyfill' in my entry file app.js. It works. But the file is big.
So I write .bablerc like this:
{ "presets": [ [ "env", { "modules": false, "targets": { "browsers": [ "> 1%", "last 3 versions", "ie >= 9", "ios >= 8", "android >= 4.2" ] }, "useBuiltIns": false } ], "stage-2" ], "plugins": [ "transform-runtime" ] }
It don't need to add import 'babel-polyfill' in my entry file app.js. And the file is smaller.
I guess that the option useBuiltIns is something wrong.
useBuiltIns
Sorry, something went wrong.
Adding babel-polyfill as a temporary fix to whydoidoit#1 because I co…
5fa055c
…uldn't get the alternative (and probably better) method described by zhouyu1993 to work with the Babel version used
No branches or pull requests
When I try to run the example project I get the following error:
[main.build.js?id=9121733:1]: ReferenceError: regeneratorRuntime is not defined
O fixed it installing the babel-polyfill and adding it to the main.js file
The text was updated successfully, but these errors were encountered: