Skip to content

Commit 61fb06e

Browse files
authored
fix(unplugin-vue): use defaultSFCLang setting for src files instead of falling back to json (#286)
1 parent 35ada13 commit 61fb06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/unplugin-vue-i18n/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ export const unplugin = createUnplugin<PluginOptions>((options = {}, meta) => {
570570
langInfo = (
571571
query.src
572572
? query.lang === 'i18n'
573-
? 'json'
573+
? defaultSFCLang
574574
: query.lang
575575
: query.lang
576576
) as Required<PluginOptions>['defaultSFCLang']

0 commit comments

Comments
 (0)