Skip to content

Commit 375d2b8

Browse files
committed
resolving issue egeneratorRuntime is not defined
1 parent 0e4a0b5 commit 375d2b8

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"plugins": [
77
"@babel/plugin-proposal-class-properties" ,
88
"@babel/plugin-syntax-class-properties",
9-
"@babel/plugin-syntax-dynamic-import"
9+
"@babel/plugin-syntax-dynamic-import",
10+
"@babel/plugin-transform-runtime"
1011
]
1112
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@babel/plugin-proposal-class-properties": "^7.5.5",
2222
"@babel/plugin-syntax-class-properties": "^7.2.0",
2323
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
24+
"@babel/plugin-transform-runtime": "^7.5.5",
2425
"@babel/preset-env": "^7.5.5",
2526
"@babel/preset-react": "^7.0.0",
2627
"babel-loader": "^8.0.6",
@@ -35,6 +36,7 @@
3536
},
3637
"dependencies": {
3738
"@babel/polyfill": "^7.4.4",
39+
"@babel/runtime": "^7.5.5",
3840
"@material-ui/core": "^4.3.3",
3941
"@material-ui/icons": "^4.2.1",
4042
"react": "^16.8.6",

yarn.lock

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,16 @@
577577
dependencies:
578578
"@babel/helper-plugin-utils" "^7.0.0"
579579

580+
"@babel/plugin-transform-runtime@^7.5.5":
581+
version "7.5.5"
582+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.5.5.tgz#a6331afbfc59189d2135b2e09474457a8e3d28bc"
583+
integrity sha512-6Xmeidsun5rkwnGfMOp6/z9nSzWpHFNVr2Jx7kwoq4mVatQfQx5S56drBgEHF+XQbKOdIaOiMIINvp/kAwMN+w==
584+
dependencies:
585+
"@babel/helper-module-imports" "^7.0.0"
586+
"@babel/helper-plugin-utils" "^7.0.0"
587+
resolve "^1.8.1"
588+
semver "^5.5.1"
589+
580590
"@babel/plugin-transform-shorthand-properties@^7.2.0":
581591
version "7.2.0"
582592
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0"
@@ -5718,7 +5728,7 @@ resolve-url@^0.2.1:
57185728
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
57195729
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
57205730

5721-
resolve@^1.10.0, resolve@^1.3.2:
5731+
resolve@^1.10.0, resolve@^1.3.2, resolve@^1.8.1:
57225732
version "1.12.0"
57235733
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6"
57245734
integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==
@@ -5847,7 +5857,7 @@ semver-truncate@^1.1.2:
58475857
dependencies:
58485858
semver "^5.3.0"
58495859

5850-
"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0:
5860+
"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:
58515861
version "5.7.1"
58525862
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
58535863
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==

0 commit comments

Comments
 (0)