Use vue3 without compat
This commit is contained in:
parent
d4f26e8536
commit
013b7e9dc9
2 changed files with 2 additions and 7 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
import Vue from "vue";
|
import { createStore } from "vuex";
|
||||||
import Vuex from "vuex";
|
|
||||||
import wotStoreModule from "./wot-client";
|
import wotStoreModule from "./wot-client";
|
||||||
|
|
||||||
Vue.use(Vuex);
|
|
||||||
|
|
||||||
function getOriginFromLocation() {
|
function getOriginFromLocation() {
|
||||||
// This will default to the same origin that's serving
|
// This will default to the same origin that's serving
|
||||||
// the web app - but can be overridden by the URL.
|
// the web app - but can be overridden by the URL.
|
||||||
|
|
@ -55,7 +52,7 @@ const LOCALSTORAGE_KEYS = [
|
||||||
"navigationInvert",
|
"navigationInvert",
|
||||||
];
|
];
|
||||||
|
|
||||||
export default new Vuex.Store({
|
export default createStore({
|
||||||
modules: {
|
modules: {
|
||||||
wot: wotStoreModule,
|
wot: wotStoreModule,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,6 @@ export default defineConfig({
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
// Use Vue 2 compatible build.
|
|
||||||
vue: "@vue/compat",
|
|
||||||
// Setup path alias for src directory.
|
// Setup path alias for src directory.
|
||||||
// This allows importing modules using '@/path/to/module'.
|
// This allows importing modules using '@/path/to/module'.
|
||||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue