Skip to content

Commit 2507664

Browse files
committed
fix(babel): Specify files to make babel actually do something
1 parent cdf5972 commit 2507664

File tree

5 files changed

+30
-11
lines changed

5 files changed

+30
-11
lines changed

babel.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = {
22
presets: [
3-
'@vue/cli-plugin-babel/preset',
4-
'@babel/preset-env'
3+
'@vue/cli-plugin-babel/preset'
54
],
65
plugins: [['@babel/plugin-transform-runtime', { useESModules: true }]]
76
}

build/rollup.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ function createConfig(format, output, plugins = []) {
138138
),
139139
...nodePlugins,
140140
// Babel plugin need to be placed after commonjs plugin
141-
babel({ babelHelpers: 'runtime' }),
141+
babel({
142+
exclude: 'node_modules/**',
143+
extensions: ['.js', '.ts'],
144+
babelHelpers: 'runtime'
145+
}),
142146
...plugins,
143147
],
144148
output,

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vue2-example/package-lock.json

+18-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vue2-example/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11+
"@vue/composition-api": "^1.0.0-rc.5",
1112
"core-js": "^3.6.5",
1213
"vue": "^2.6.11",
13-
"vue-datatable-url-sync": "^1.0.1",
14+
"vue-datatable-url-sync": "^1.0.2",
1415
"vue-router": "^3.2.0",
1516
"vuetify": "^2.4.0"
1617
},

0 commit comments

Comments
 (0)