Skip to content

Commit 2e9abb1

Browse files
authored
fix(unplugin-vue-i18n): set default value on include option (#531)
1 parent 4b994fb commit 2e9abb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/unplugin-vue-i18n/src/core/options.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export function resolveOptions(options: PluginOptions) {
2828

2929
// prettier-ignore
3030
const compositionOnly = moduleType === 'vue-i18n'
31-
? isBoolean(options.compositionOnly)
32-
? options.compositionOnly
33-
: true
31+
? isBoolean(options.compositionOnly)
32+
? options.compositionOnly
3433
: true
34+
: true
3535

3636
// prettier-ignore
3737
const fullInstall = moduleType === 'vue-i18n'
@@ -59,7 +59,7 @@ export function resolveOptions(options: PluginOptions) {
5959
typeof options.transformI18nBlock === 'function' ? options.transformI18nBlock : null
6060

6161
return {
62-
include: normalizeGlobOption(options.include),
62+
include: normalizeGlobOption(options.include || []),
6363
exclude: normalizeGlobOption(options.exclude),
6464
module: moduleType,
6565
onlyLocales,

0 commit comments

Comments
 (0)