Skip to content

Commit 7fbdc10

Browse files
author
Thomas Grainger
committed
switch to babel transform runtime Fixes #152
This allows the use of Object.assign
1 parent 5ad0dd1 commit 7fbdc10

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"production": {
1515
"plugins": [
16-
"external-helpers"
16+
"transform-runtime"
1717
]
1818
}
1919
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"homepage": "https://github.com/wbuchwalter/ng-redux#readme",
3535
"devDependencies": {
3636
"babel-core": "^6.25.0",
37-
"babel-plugin-external-helpers": "^6.22.0",
37+
"babel-plugin-transform-runtime": "^6.23.0",
3838
"babel-preset-env": "^1.6.0",
3939
"cross-env": "^5.0.5",
4040
"expect": "^1.20.2",
@@ -50,6 +50,7 @@
5050
"sinon": "^3.2.0"
5151
},
5252
"dependencies": {
53+
"babel-runtime": "^6.26.0",
5354
"invariant": "^2.2.2",
5455
"lodash.curry": "^4.1.1",
5556
"lodash.isfunction": "^3.0.8",

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (env === 'development' || env === 'production') {
4040
}),
4141
commonjs(),
4242
babel({
43+
runtimeHelpers: true,
4344
exclude: 'node_modules/**'
4445
})
4546
)

yarn.lock

+17-6
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,6 @@ babel-plugin-check-es2015-constants@^6.22.0:
283283
dependencies:
284284
babel-runtime "^6.22.0"
285285

286-
babel-plugin-external-helpers@^6.22.0:
287-
version "6.22.0"
288-
resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1"
289-
dependencies:
290-
babel-runtime "^6.22.0"
291-
292286
babel-plugin-syntax-async-functions@^6.8.0:
293287
version "6.13.0"
294288
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
@@ -491,6 +485,12 @@ babel-plugin-transform-regenerator@^6.22.0:
491485
dependencies:
492486
regenerator-transform "0.9.11"
493487

488+
babel-plugin-transform-runtime@^6.23.0:
489+
version "6.23.0"
490+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
491+
dependencies:
492+
babel-runtime "^6.22.0"
493+
494494
babel-plugin-transform-strict-mode@^6.24.1:
495495
version "6.24.1"
496496
resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758"
@@ -552,6 +552,13 @@ babel-runtime@^6.18.0, babel-runtime@^6.22.0:
552552
core-js "^2.4.0"
553553
regenerator-runtime "^0.10.0"
554554

555+
babel-runtime@^6.26.0:
556+
version "6.26.0"
557+
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
558+
dependencies:
559+
core-js "^2.4.0"
560+
regenerator-runtime "^0.11.0"
561+
555562
babel-template@^6.24.1, babel-template@^6.25.0:
556563
version "6.25.0"
557564
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.25.0.tgz#665241166b7c2aa4c619d71e192969552b10c071"
@@ -2018,6 +2025,10 @@ regenerator-runtime@^0.10.0:
20182025
version "0.10.5"
20192026
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
20202027

2028+
regenerator-runtime@^0.11.0:
2029+
version "0.11.0"
2030+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1"
2031+
20212032
20222033
version "0.9.11"
20232034
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.11.tgz#3a7d067520cb7b7176769eb5ff868691befe1283"

0 commit comments

Comments
 (0)