Skip to content

Commit 3569d49

Browse files
authored
fix cli purge option when using commas (#4578)
1 parent 40645d7 commit 3569d49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ async function build() {
345345
let resolvedConfig = resolveConfigInternal(config)
346346

347347
if (args['--purge']) {
348-
resolvedConfig.purge = args['--purge'].split(',')
348+
resolvedConfig.purge = args['--purge'].split(/(?<!{[^}]+),/)
349349
}
350350

351351
if (args['--jit']) {

0 commit comments

Comments
 (0)