Skip to content

Commit e7be824

Browse files
enykeevgoto-bus-stop
authored andcommitted
Fix performance boost regexp (#13)
1 parent f1e9254 commit e7be824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function cssExtract (bundle, opts) {
3232

3333
function write (chunk, enc, cb) {
3434
// Performance boost: don't do ast parsing unless we know it's needed
35-
if (!/[insert\-css|sheetify\/insert]/.test(chunk.source)) {
35+
if (!/(insert\-css|sheetify\/insert)/.test(chunk.source)) {
3636
return cb(null, chunk)
3737
}
3838

0 commit comments

Comments
 (0)