Skip to content

Commit f96d5fe

Browse files
committed
fix(package): fix regeneratorRuntime error
Properly polyfill async functions for use in es5 env Add `babel-plugin-transform-runtime` devDependency fixes #51 `ERROR build:compile ReferenceError: regeneratorRuntime is not defined`
1 parent b0661ab commit f96d5fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"babel-eslint": "^8.0.0",
3636
"babel-plugin-transform-decorators-legacy": "^1.3.4",
3737
"babel-plugin-transform-object-rest-spread": "^6.26.0",
38+
"babel-plugin-transform-runtime": "^6.23.0",
3839
"babel-preset-env": "^1.6.0",
3940
"codecov": "^3.0.0",
4041
"cross-env": "^5.0.5",
@@ -64,6 +65,7 @@
6465
"babel": {
6566
"presets": "babel-preset-env",
6667
"plugins": [
68+
"transform-runtime",
6769
[
6870
"transform-object-rest-spread",
6971
{

Diff for: yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ babel-plugin-transform-regenerator@^6.22.0:
934934
dependencies:
935935
regenerator-transform "^0.10.0"
936936

937-
babel-plugin-transform-runtime@^6.15.0:
937+
babel-plugin-transform-runtime@^6.15.0, babel-plugin-transform-runtime@^6.23.0:
938938
version "6.23.0"
939939
resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
940940
dependencies:

0 commit comments

Comments
 (0)