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)),