From ce643616d91495a9d6f1274ff2558a205b39f045 Mon Sep 17 00:00:00 2001 From: mochazzxx Date: Fri, 7 Oct 2022 10:06:01 -0700 Subject: [PATCH] fix: convert JS Array to multiple Glob matching pattern (#15) Co-authored-by: kevin bian --- 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 {