Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf06b6

Browse files
committed
fix: match source file
1 parent a0523d6 commit 4cf06b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import hashId from 'hash-sum'
99

1010
export const COMP_IDENTIFIER = `__sfc__`
1111

12-
const REGEX_JS = /\.[jt]sx?/
12+
const REGEX_JS = /\.[jt]sx?$/
1313
function testTs(filename: string | undefined | null) {
1414
return !!(filename && /(\.|\b)tsx?$/.test(filename))
1515
}

0 commit comments

Comments
 (0)