mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(bridge): add vuex alias (#1026)
This commit is contained in:
parent
380fd66f67
commit
4a34c2a75b
@ -9,6 +9,9 @@ export function setupAppBridge (_options: any) {
|
|||||||
nuxt.options.alias['#app'] = resolve(distDir, 'runtime/index.mjs')
|
nuxt.options.alias['#app'] = resolve(distDir, 'runtime/index.mjs')
|
||||||
nuxt.options.alias['#build'] = nuxt.options.buildDir
|
nuxt.options.alias['#build'] = nuxt.options.buildDir
|
||||||
|
|
||||||
|
// Alias vuex to its esm version, as vuex.mjs currently exports cjs: https://github.com/vuejs/vuex/pull/2073
|
||||||
|
nuxt.options.alias.vuex = 'vuex/dist/vuex.esm.js'
|
||||||
|
|
||||||
// Alias vue to a vue3-compat version of vue2
|
// Alias vue to a vue3-compat version of vue2
|
||||||
nuxt.options.alias['#vue'] = nuxt.options.alias.vue || resolveModule('vue/dist/vue.runtime.esm.js', { paths: nuxt.options.modulesDir })
|
nuxt.options.alias['#vue'] = nuxt.options.alias.vue || resolveModule('vue/dist/vue.runtime.esm.js', { paths: nuxt.options.modulesDir })
|
||||||
for (const alias of [
|
for (const alias of [
|
||||||
|
Loading…
Reference in New Issue
Block a user