Skip to content

Commit 10fa079

Browse files
committed
fix(Babel): Add babel-runtime for node v4
1 parent b90a1f4 commit 10fa079

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"plugins": [
33
"transform-object-rest-spread",
4-
"transform-flow-strip-types"
4+
"transform-flow-strip-types",
5+
["transform-runtime", { "polyfill": false }]
56
],
67
"presets": [
78
["env", {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"homepage": "https://github.com/nodkz/graphql-compose-elasticsearch#readme",
2424
"dependencies": {
25+
"babel-runtime": "^6.23.0",
2526
"dox": "^0.9.0"
2627
},
2728
"peerDependencies": {
@@ -33,6 +34,7 @@
3334
"babel-eslint": "^7.2.3",
3435
"babel-plugin-transform-flow-strip-types": "^6.22.0",
3536
"babel-plugin-transform-object-rest-spread": "^6.22.0",
37+
"babel-plugin-transform-runtime": "^6.23.0",
3638
"babel-preset-env": "^1.5.1",
3739
"cz-conventional-changelog": "^2.0.0",
3840
"elasticsearch": "^13.0.1",

yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,12 @@ babel-plugin-transform-regenerator@^6.22.0:
706706
dependencies:
707707
regenerator-transform "0.9.8"
708708

709+
babel-plugin-transform-runtime@^6.23.0:
710+
version "6.23.0"
711+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
712+
dependencies:
713+
babel-runtime "^6.22.0"
714+
709715
babel-plugin-transform-strict-mode@^6.22.0:
710716
version "6.22.0"
711717
resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.22.0.tgz#e008df01340fdc87e959da65991b7e05970c8c7c"

0 commit comments

Comments
 (0)