Skip to content

Commit 1519ec0

Browse files
committed
fix(babel): Switch from external to runtime helpers
1 parent d23d908 commit 1519ec0

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-cornerstone-viewport",
3-
"version": "0.1.24",
3+
"version": "0.1.25",
44
"description": "Cornerstone medical image viewport component for React",
55
"author": "Cornerstone Contributors",
66
"license": "MIT",
@@ -25,20 +25,20 @@
2525
"generateStaticSite": "./generateStaticSite.sh"
2626
},
2727
"peerDependencies": {
28-
"react": "^15.0.0 || ^16.0.0",
29-
"react-dom": "^15.0.0 || ^16.0.0",
30-
"react-resize-detector": "^3.4.0",
3128
"cornerstone-core": "^2.2.8",
3229
"cornerstone-math": "^0.1.8",
3330
"cornerstone-tools": "^3.1.0",
3431
"cornerstone-wado-image-loader": "^2.2.3",
3532
"dicom-parser": "^1.8.3",
36-
"hammerjs": "^2.0.8"
33+
"hammerjs": "^2.0.8",
34+
"react": "^15.0.0 || ^16.0.0",
35+
"react-dom": "^15.0.0 || ^16.0.0",
36+
"react-resize-detector": "^3.4.0"
3737
},
3838
"devDependencies": {
3939
"@babel/core": "^7.2.0",
40-
"@babel/plugin-external-helpers": "^7.2.0",
4140
"@babel/plugin-proposal-class-properties": "^7.2.1",
41+
"@babel/plugin-transform-runtime": "^7.4.3",
4242
"@babel/preset-env": "^7.2.0",
4343
"@babel/preset-react": "^7.0.0",
4444
"@svgr/rollup": "^4.1.0",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export default {
5252
svgr(),
5353
babel({
5454
exclude: 'node_modules/**',
55-
plugins: [ '@babel/external-helpers' ],
56-
externalHelpers: true
55+
plugins: [ '@babel/transform-runtime' ],
56+
runtimeHelpers: true
5757
}),
5858
resolve(),
5959
commonjs()

yarn.lock

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,6 @@
294294
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.3.2.tgz#95cdeddfc3992a6ca2a1315191c1679ca32c55cd"
295295
integrity sha512-QzNUC2RO1gadg+fs21fi0Uu0OuGNzRKEmgCxoLNzbCdoprLwjfmZwzUrpUNfJPaVRwBpDY47A17yYEGWyRelnQ==
296296

297-
"@babel/plugin-external-helpers@^7.2.0":
298-
version "7.2.0"
299-
resolved "https://registry.yarnpkg.com/@babel/plugin-external-helpers/-/plugin-external-helpers-7.2.0.tgz#7f4cb7dee651cd380d2034847d914288467a6be4"
300-
integrity sha512-QFmtcCShFkyAsNtdCM3lJPmRe1iB+vPZymlB4LnDIKEBj2yKQLQKtoxXxJ8ePT5fwMl4QGg303p4mB0UsSI2/g==
301-
dependencies:
302-
"@babel/helper-plugin-utils" "^7.0.0"
303-
304297
"@babel/plugin-proposal-async-generator-functions@^7.2.0":
305298
version "7.2.0"
306299
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e"
@@ -694,6 +687,16 @@
694687
resolve "^1.8.1"
695688
semver "^5.5.1"
696689

690+
"@babel/plugin-transform-runtime@^7.4.3":
691+
version "7.4.3"
692+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.4.3.tgz#4d6691690ecdc9f5cb8c3ab170a1576c1f556371"
693+
integrity sha512-7Q61bU+uEI7bCUFReT1NKn7/X6sDQsZ7wL1sJ9IYMAO7cI+eg6x9re1cEw2fCRMbbTVyoeUKWSV1M6azEfKCfg==
694+
dependencies:
695+
"@babel/helper-module-imports" "^7.0.0"
696+
"@babel/helper-plugin-utils" "^7.0.0"
697+
resolve "^1.8.1"
698+
semver "^5.5.1"
699+
697700
"@babel/plugin-transform-shorthand-properties@^7.2.0":
698701
version "7.2.0"
699702
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0"

0 commit comments

Comments
 (0)