Skip to content

Commit

Permalink
fix: vueI18nBridgePath wrong (#1417)
Browse files Browse the repository at this point in the history
find in vue-i18n-bridge dist dir,only have`vue-i18n-bridge.runtime.esm-bundler.js`
  • Loading branch information
baixiaoyu2997 authored Mar 30, 2022
1 parent 6b68355 commit 2af6fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt-i18n/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function setupNuxtBridge(nuxt: Nuxt) {
// resolve vue-i18n-bridge as vue-i18n
const vueI18nBridgePath = nuxt.options.dev
? 'vue-i18n-bridge/dist/vue-i18n-bridge.esm-bundler.js'
: 'vue-i18n-bridge/dist/vue-i18n-bridge-runtime.esm-bundler.js'
: 'vue-i18n-bridge/dist/vue-i18n-bridge.runtime.esm-bundler.js'
nuxt.options.alias['vue-i18n-bridge'] = resolveModule(vueI18nBridgePath, {
paths: nuxt.options.modulesDir
})
Expand Down

0 comments on commit 2af6fd2

Please sign in to comment.