Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vueI18nBridgePath wrong #1417

Merged
merged 1 commit into from
Mar 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: vueI18nBridgePath wrong
find in vue-i18n-bridge dist dir,only have`vue-i18n-bridge.runtime.esm-bundler.js`
  • Loading branch information
baixiaoyu2997 authored Mar 30, 2022
commit c47e86a166b97073eaacc240f2647fac3816f770
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