From ef6ab5ec75f536ae9b70e464e2200abf7e1d5f42 Mon Sep 17 00:00:00 2001 From: kevin bian Date: Thu, 6 Oct 2022 16:23:14 -0700 Subject: [PATCH] fix: convert JS Array to multiple Glob matching pattern --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cb609c6..c80420c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,7 +60,7 @@ export default function plugin( tsConfig, compilerOptions, parserOptions - )(await glob(Array.isArray(src) ? src.join(',') : src)); + )(await glob(Array.isArray(src) ? `{${src.join(',')}}` : src)); }, configureWebpack(config) { return {