Skip to content

Commit 0eaca0f

Browse files
committed
fix vue 3.4
1 parent 5fb8dd4 commit 0eaca0f

File tree

10 files changed

+670
-539
lines changed

10 files changed

+670
-539
lines changed

frameworks/keyed/vue-pinia/package-lock.json

Lines changed: 207 additions & 179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/vue-pinia/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
"url": "https://github.com/krausest/js-framework-benchmark.git"
2222
},
2323
"devDependencies": {
24-
"@vue/compiler-sfc": "3.4.0",
25-
"vue-loader": "17.4.0",
26-
"webpack": "5.88.1",
24+
"@vue/compiler-sfc": "3.4.3",
25+
"vue-loader": "17.4.2",
26+
"webpack": "5.89.0",
2727
"webpack-cli": "5.1.4"
2828
},
2929
"dependencies": {
3030
"pinia": "^2.1.7",
31-
"vue": "3.4.0"
31+
"vue": "3.4.3"
3232
}
3333
}

frameworks/keyed/vue-pinia/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path')
22
const { VueLoaderPlugin } = require('vue-loader')
3+
const webpack = require('webpack')
34

45
module.exports = (env = {}) => ({
56
mode: 'production',
@@ -27,5 +28,8 @@ module.exports = (env = {}) => ({
2728
},
2829
plugins: [
2930
new VueLoaderPlugin(),
31+
new webpack.DefinePlugin({
32+
__VUE_PROD_DEVTOOLS__: JSON.stringify(false)
33+
})
3034
],
3135
})

frameworks/keyed/vue/package-lock.json

Lines changed: 203 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/vue/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"url": "https://github.com/krausest/js-framework-benchmark.git"
2222
},
2323
"devDependencies": {
24-
"@vue/compiler-sfc": "3.4.0",
25-
"vue-loader": "17.4.0",
24+
"@vue/compiler-sfc": "3.4.3",
25+
"vue-loader": "17.4.2",
2626
"webpack": "5.89.0",
2727
"webpack-cli": "5.1.4"
2828
},
2929
"dependencies": {
30-
"vue": "3.4.0"
30+
"vue": "3.4.3"
3131
}
3232
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
const path = require('path')
2+
const { VueLoaderPlugin } = require('vue-loader')
3+
const webpack = require('webpack')
4+
5+
module.exports = (env = {}) => ({
6+
mode: 'production',
7+
entry: path.resolve(__dirname, './src/main.js'),
8+
output: {
9+
path: path.resolve(__dirname, './dist'),
10+
publicPath: '/dist/'
11+
},
12+
resolve: {
13+
alias: {
14+
// this isn't technically needed, since the default `vue` entry for bundlers
15+
// is a simple `export * from '@vue/runtime-dom`. However having this
16+
// extra re-export somehow causes webpack to always invalidate the module
17+
// on the first HMR update and causes the page to reload.
18+
'vue': '@vue/runtime-dom'
19+
}
20+
},
21+
module: {
22+
rules: [
23+
{
24+
test: /\.vue$/,
25+
use: 'vue-loader'
26+
},
27+
]
28+
},
29+
plugins: [
30+
new VueLoaderPlugin(),
31+
new webpack.DefinePlugin({
32+
__VUE_PROD_DEVTOOLS__: JSON.stringify(false)
33+
})
34+
],
35+
})

frameworks/keyed/vue/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const path = require('path')
22
const { VueLoaderPlugin } = require('vue-loader')
3+
const webpack = require('webpack')
34

45
module.exports = (env = {}) => ({
56
mode: 'production',
@@ -27,5 +28,8 @@ module.exports = (env = {}) => ({
2728
},
2829
plugins: [
2930
new VueLoaderPlugin(),
31+
new webpack.DefinePlugin({
32+
__VUE_PROD_DEVTOOLS__: JSON.stringify(false)
33+
})
3034
],
3135
})

0 commit comments

Comments
 (0)