Skip to content

Commit 14f6f18

Browse files
committed
migration: switch to Vue 3 migration build
1 parent 565b948 commit 14f6f18

File tree

3 files changed

+209
-1226
lines changed

3 files changed

+209
-1226
lines changed

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
},
1111
"dependencies": {
1212
"firebase": "4.6.2",
13-
"vue": "^2.6.12",
13+
"vue": "^3.1.0",
14+
"@vue/compat": "^3.1.0",
1415
"vue-router": "^3.0.0",
1516
"vuex": "^3.0.0",
1617
"vuex-router-sync": "^5.0.0"
1718
},
1819
"devDependencies": {
19-
"vite-plugin-vue2": "^1.4.4",
20+
"@vitejs/plugin-vue": "^1.2.2",
21+
"@vue/compiler-sfc": "^3.1.0",
2022
"stylus": "^0.54.8",
2123
"vite": "^2.2.3"
2224
}

vite.config.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
import { defineConfig } from 'vite'
2-
import { createVuePlugin } from 'vite-plugin-vue2'
2+
import createVuePlugin from '@vitejs/plugin-vue'
33

4+
// https://vitejs.dev/config/
45
export default defineConfig({
5-
plugins: [createVuePlugin()]
6+
resolve: {
7+
alias: {
8+
vue: '@vue/compat'
9+
}
10+
},
11+
plugins: [
12+
createVuePlugin({
13+
template: {
14+
compilerOptions: {
15+
compatConfig: {
16+
MODE: 2
17+
}
18+
}
19+
}
20+
})
21+
]
622
})

0 commit comments

Comments
 (0)