Skip to content

Commit b396066

Browse files
authored
feat(bundle-utils): support vue-i18n v10 at getVueI18nVersion (#370)
1 parent 46798d5 commit b396066

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/bundle-utils/src/deps.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function checkInstallPackage(
3636
)
3737
}
3838

39-
type VueI18nVersion = '9' | 'unknown' | ''
39+
type VueI18nVersion = '9' | '10' | 'unknown' | ''
4040

4141
export function getVueI18nVersion(
4242
debug: Function,
@@ -49,6 +49,9 @@ export function getVueI18nVersion(
4949
if (VueI18n.VERSION && VueI18n.VERSION.startsWith('9.')) {
5050
return '9'
5151
}
52+
if (VueI18n.VERSION && VueI18n.VERSION.startsWith('10.')) {
53+
return '10'
54+
}
5255
return 'unknown'
5356
}
5457

0 commit comments

Comments
 (0)