mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
chore: remove unused vuex dependency
This commit is contained in:
parent
666b7f1ba8
commit
0287b46fed
@ -18,8 +18,7 @@ export default defineBuildConfig({
|
||||
'nuxi',
|
||||
'vue-router',
|
||||
'ohmyfetch',
|
||||
'vue-router',
|
||||
'vuex5'
|
||||
'vue-router'
|
||||
],
|
||||
externals: [
|
||||
'@vue/reactivity',
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
}
|
@ -38,7 +38,6 @@ function serverStandalone (ctx: WebpackConfigContext) {
|
||||
const inline = [
|
||||
'src/',
|
||||
'#app',
|
||||
'vuex5',
|
||||
'!',
|
||||
'-!',
|
||||
'~',
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user