-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: i18n vite plugin error during nuxt warmup
- Loading branch information
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,9 @@ | |
"inflight": "1", | ||
"npmlog": "5", | ||
"rimraf": "3" | ||
}, | ||
"patchedDependencies": { | ||
"@nuxtjs/[email protected]": "patches/@[email protected]" | ||
} | ||
}, | ||
"simple-git-hooks": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/module.mjs b/dist/module.mjs | ||
index b6def32f8bde5516e6ee0a25f153b01803f55683..897b44120533fdb74b33d9d4dff1d21b910073ca 100644 | ||
--- a/dist/module.mjs | ||
+++ b/dist/module.mjs | ||
@@ -1462,7 +1462,7 @@ async function extendBundler({ options: nuxtOptions }, nuxt) { | ||
fullInstall: nuxtOptions.bundle.fullInstall, | ||
onlyLocales: nuxtOptions.bundle.onlyLocales, | ||
dropMessageCompiler: nuxtOptions.bundle.dropMessageCompiler, | ||
- optimizeTranslationDirective: true, | ||
+ optimizeTranslationDirective: false, | ||
strictMessage: nuxtOptions.compilation.strictMessage, | ||
escapeHtml: nuxtOptions.compilation.escapeHtml, | ||
defaultSFCLang: nuxtOptions.customBlocks.defaultSFCLang, |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.