Skip to content

Commit 30b07b2

Browse files
committed
refactor: babel helper config
1 parent 84d7d4d commit 30b07b2

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
],
88
],
99
"plugins": [
10-
"@babel/plugin-proposal-class-properties"
10+
"@babel/plugin-proposal-class-properties",
11+
"@babel/plugin-transform-runtime"
1112
],
1213
"env": {
1314
"test": {

build/rollup.config.base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default {
1919
}),
2020
babel({
2121
exclude: 'node_modules/**',
22+
babelHelpers: 'runtime',
2223
extensions: ['.js', '.vue'],
2324
}),
2425
cjs(),

build/rollup.config.es.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const config = Object.assign({}, base, {
1212
'lodash/isEqual',
1313
'popper.js',
1414
'vue-resize',
15+
/@babel\/runtime/,
1516
],
1617
})
1718

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"module": "dist/v-tooltip.esm.js",
2222
"unpkg": "dist/v-tooltip.min.js",
2323
"dependencies": {
24+
"@babel/runtime": "^7.13.10",
2425
"lodash": "^4.17.21",
2526
"popper.js": "^1.16.1",
2627
"vue-resize": "^1.0.1"
@@ -29,7 +30,7 @@
2930
"@babel/core": "^7.4.0",
3031
"@babel/plugin-proposal-class-properties": "^7.4.0",
3132
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
32-
"@babel/plugin-transform-runtime": "^7.4.0",
33+
"@babel/plugin-transform-runtime": "^7.13.10",
3334
"@babel/polyfill": "^7.4.3",
3435
"@babel/preset-env": "^7.4.2",
3536
"@rollup/plugin-babel": "^5.2.1",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692
dependencies:
693693
"@babel/helper-plugin-utils" "^7.12.13"
694694

695-
"@babel/plugin-transform-runtime@^7.11.0", "@babel/plugin-transform-runtime@^7.4.0":
695+
"@babel/plugin-transform-runtime@^7.11.0", "@babel/plugin-transform-runtime@^7.13.10":
696696
version "7.13.10"
697697
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.13.10.tgz#a1e40d22e2bf570c591c9c7e5ab42d6bf1e419e1"
698698
integrity sha512-Y5k8ipgfvz5d/76tx7JYbKQTcgFSU6VgJ3kKQv4zGTKr+a9T/KBvfRvGtSFgKDQGt/DBykQixV0vNWKIdzWErA==

0 commit comments

Comments
 (0)