Skip to content

Commit

Permalink
fix(dev-tools): add babel plugin (#61)
Browse files Browse the repository at this point in the history
add @babel/plugin-transform-runtime to fix `ReferenceError: regeneratorRuntime is not defined`. This error was caused by `await` not being transpiled.
  • Loading branch information
ferrettin authored Jun 4, 2020
1 parent 620c0e8 commit 1dd6378
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/parrot-devtools/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["amex"]
"presets": ["amex"],
"plugins": ["@babel/plugin-transform-runtime"]
}
46 changes: 46 additions & 0 deletions packages/parrot-devtools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/parrot-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.9.6",
"archiver": "^2.1.1",
"babel-loader": "^8.0.6",
"babel-preset-amex": "^3.3.0",
Expand Down

0 comments on commit 1dd6378

Please sign in to comment.