Skip to content

Commit e534c30

Browse files
committed
Switch to vue compat
1 parent 2e70707 commit e534c30

6 files changed

Lines changed: 346 additions & 155 deletions

File tree

client/build-config.shared.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ export const legacyAliases = {
1818
jqueryVendor: path.join(libsBase, "jquery/jquery.js"),
1919
storemodern: path.join(__dirname, "node_modules/store/dist/store.modern.js"),
2020

21-
// Vue
22-
vue: path.join(__dirname, "node_modules/vue/dist/vue.esm.js"),
21+
// Vue — point at @vue/compat for the Vue 2 → 3 migration. The compat
22+
// build is Vue 3 with Vue 2 behavior emulation; replacing this path
23+
// with the plain Vue 3 build will break SFCs still using Vue 2 syntax.
24+
vue: path.join(__dirname, "node_modules/@vue/compat/dist/vue.esm-bundler.js"),
2325

2426
// Build config
2527
config: path.join(scriptsBase, "config", process.env.NODE_ENV || "development") + ".js",

client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"pnpm": {
2424
"overrides": {
2525
"chokidar": "3.5.3",
26-
"vue": "2.7.16",
2726
"@fortawesome/fontawesome-common-types": "6.2.1"
2827
},
2928
"onlyBuiltDependencies": [
@@ -49,6 +48,7 @@
4948
"@monaco-editor/loader": "^1.5.0",
5049
"@popperjs/core": "^2.11.8",
5150
"@sentry/vue": "^10.45.0",
51+
"@vue/compat": "^3.5.22",
5252
"@vueuse/core": "^10.5.0",
5353
"@vueuse/math": "^10.9.0",
5454
"@vueuse/shared": "^10.5.0",
@@ -119,7 +119,7 @@
119119
"vega-embed": "^6.26.0",
120120
"vega-lite": "^5.21.0",
121121
"vscode-languageserver-types": "^3.17.5",
122-
"vue": "^2.7.16",
122+
"vue": "^3.5.18",
123123
"vue-class-component": "^7.2.6",
124124
"vue-demi": "0.13.11",
125125
"vue-echarts": "^7.0.3",
@@ -171,10 +171,11 @@
171171
"@types/markdown-it": "^13.0.4",
172172
"@typescript-eslint/eslint-plugin": "^6.8.0",
173173
"@typescript-eslint/parser": "^6.8.0",
174-
"@vitejs/plugin-vue2": "^2.3.4",
174+
"@vitejs/plugin-vue": "^5.2.0",
175175
"@vitest/coverage-v8": "^4.0.14",
176176
"@vitest/spy": "^4.0.14",
177177
"@vitest/ui": "^4.0.14",
178+
"@vue/compiler-sfc": "^3.5.22",
178179
"@vue/test-utils": "^1.3.6",
179180
"@vue/tsconfig": "^0.4.0",
180181
"autoprefixer": "10.4.16",
@@ -203,7 +204,6 @@
203204
"vitest-fail-on-console": "^0.10.1",
204205
"vitest-location-mock": "^1.0.4",
205206
"vue-eslint-parser": "^10.2.0",
206-
"vue-template-compiler": "^2.7.16",
207207
"vue-tsc": "2.2.12",
208208
"xml-js": "^1.6.11",
209209
"xml2js": "^0.6.2"

0 commit comments

Comments
 (0)