Skip to content

Commit

Permalink
fix babel.config.js; update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
adi518 committed May 22, 2021
1 parent 95226cd commit b693428
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
presets: [
[
'@vue/app',
'@vue/cli-plugin-babel/preset',
{
useBuiltIns: false
}
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.7.4",
"@vue/cli-plugin-babel": "^4.0.0",
"@vue/cli-plugin-babel": "^4.5.13",
"@vue/cli-plugin-eslint": "^4.0.0",
"@vue/cli-service": "^4.0.0",
"babel-eslint": "^10.0.3",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"lodash": "^4.17.15"
},
"devDependencies": {
"node-externals": "^1.0.0",
"@vue/cli-plugin-babel": "^4.2.3",
"monorepo-utils": "^1.0.0",
"@vue/cli-plugin-babel": "^4.5.13",
"@vue/cli-plugin-eslint": "^4.2.3",
"@vue/cli-plugin-unit-jest": "~4.2.0",
"@vue/cli-service": "^4.2.3",
Expand Down
10 changes: 5 additions & 5 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const { resolveExternals } = require('node-externals')
const { resolveExternals } = require('monorepo-utils')

module.exports = {
chainWebpack: config => {
chainWebpack: (config) => {
// https://stackoverflow.com/a/45820235/4106263
config.externals(resolveExternals({ importType: 'umd' }))
},
pluginOptions: {
jestSerializer: {
removeComments: true
}
}
removeComments: true,
},
},
}

0 comments on commit b693428

Please sign in to comment.