Skip to content

Commit 33db0bd

Browse files
author
Joshua Causey
authored
Switching the regex and string to support older node versions
1 parent 57cd8b6 commit 33db0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IncrementalChecker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class IncrementalChecker {
241241
if (
242242
fs.existsSync(fileName) &&
243243
!e.message.trim().startsWith("Invalid source file") &&
244-
/(.tsx?|.jsx?|.vue)$/.match(fileName)
244+
fileName.match(/(.tsx?|.jsx?|.vue)$/)
245245
) {
246246
// it's not because file doesn't exist - throw error
247247
throw e;

0 commit comments

Comments
 (0)