diff --git a/packages/nuxt3/build.config.ts b/packages/nuxt3/build.config.ts index fc1e91e4cd..674f5ae0f1 100644 --- a/packages/nuxt3/build.config.ts +++ b/packages/nuxt3/build.config.ts @@ -18,8 +18,7 @@ export default defineBuildConfig({ 'nuxi', 'vue-router', 'ohmyfetch', - 'vue-router', - 'vuex5' + 'vue-router' ], externals: [ '@vue/reactivity', diff --git a/packages/nuxt3/package.json b/packages/nuxt3/package.json index e75b2439f8..943a642eba 100644 --- a/packages/nuxt3/package.json +++ b/packages/nuxt3/package.json @@ -41,8 +41,7 @@ "ufo": "^0.7.9", "unplugin": "^0.2.16", "vue": "^3.2.20", - "vue-router": "^4.0.11", - "vuex5": "^0.5.0-testing.3" + "vue-router": "^4.0.11" }, "devDependencies": { "@types/fs-extra": "^9.0.13", diff --git a/packages/nuxt3/src/app/plugins/vuex.ts b/packages/nuxt3/src/app/plugins/vuex.ts deleted file mode 100644 index 235448436b..0000000000 --- a/packages/nuxt3/src/app/plugins/vuex.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { createVuex, defineStore, useStore } from 'vuex5/dist/vuex.esm' -import { useHydration } from '../composables' -import { defineNuxtPlugin } from '../nuxt' - -export default defineNuxtPlugin(({ app }) => { - const vuex = createVuex({ }) - - app.use(vuex) - - useHydration('vuex', - () => vuex.registry, - state => () => { - // eslint-disable-next-line no-console - console.log('vuex.replaceStateTree', state) - // vuex.replaceStateTree(state) - } - ) -}) - -export function createStore (arg1: any, arg2?: any) { - const store = defineStore(arg1, arg2) - - return () => useStore(store) -} diff --git a/packages/webpack/src/configs/server.ts b/packages/webpack/src/configs/server.ts index c6ad24b976..c7b9aa5f19 100644 --- a/packages/webpack/src/configs/server.ts +++ b/packages/webpack/src/configs/server.ts @@ -38,7 +38,6 @@ function serverStandalone (ctx: WebpackConfigContext) { const inline = [ 'src/', '#app', - 'vuex5', '!', '-!', '~', diff --git a/yarn.lock b/yarn.lock index f5affa7a25..b15910ec76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13756,7 +13756,6 @@ fsevents@~2.3.2: vue: ^3.2.20 vue-meta: next vue-router: ^4.0.11 - vuex5: ^0.5.0-testing.3 peerDependencies: "@vue/reactivity": 3.2.20 "@vue/shared": 3.2.20 @@ -19415,13 +19414,6 @@ fsevents@~2.3.2: languageName: node linkType: hard -"vuex5@npm:^0.5.0-testing.3": - version: 0.5.0-testing.3 - resolution: "vuex5@npm:0.5.0-testing.3" - checksum: 609a62d02d035b3151038bf0e1cdf46a9f04706a2e665fe84bd9e0b72d8bd85bf3a0bacc51a237e93893b3c26de6d8898e55aaa31a46c075091bff66056dcf52 - languageName: node - linkType: hard - "vuex@npm:^3.6.2": version: 3.6.2 resolution: "vuex@npm:3.6.2"