From 013b7e9dc936e4206ff7ac0bc8ce7efc5b098e83 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sun, 15 Feb 2026 16:12:32 +0000 Subject: [PATCH] Use vue3 without compat --- webapp/src/store.js | 7 ++----- webapp/vite.config.mjs | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/webapp/src/store.js b/webapp/src/store.js index 8b8a88c6..a804ce89 100644 --- a/webapp/src/store.js +++ b/webapp/src/store.js @@ -1,9 +1,6 @@ -import Vue from "vue"; -import Vuex from "vuex"; +import { createStore } from "vuex"; import wotStoreModule from "./wot-client"; -Vue.use(Vuex); - function getOriginFromLocation() { // This will default to the same origin that's serving // the web app - but can be overridden by the URL. @@ -55,7 +52,7 @@ const LOCALSTORAGE_KEYS = [ "navigationInvert", ]; -export default new Vuex.Store({ +export default createStore({ modules: { wot: wotStoreModule, }, diff --git a/webapp/vite.config.mjs b/webapp/vite.config.mjs index a963336b..f1e635cd 100644 --- a/webapp/vite.config.mjs +++ b/webapp/vite.config.mjs @@ -33,8 +33,6 @@ export default defineConfig({ resolve: { alias: { - // Use Vue 2 compatible build. - vue: "@vue/compat", // Setup path alias for src directory. // This allows importing modules using '@/path/to/module'. "@": fileURLToPath(new URL("./src", import.meta.url)),