Skip to content

Commit

Permalink
fix: match source file
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 3, 2024
1 parent a0523d6 commit 4cf06b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import hashId from 'hash-sum'

export const COMP_IDENTIFIER = `__sfc__`

const REGEX_JS = /\.[jt]sx?/
const REGEX_JS = /\.[jt]sx?$/
function testTs(filename: string | undefined | null) {
return !!(filename && /(\.|\b)tsx?$/.test(filename))
}
Expand Down

0 comments on commit 4cf06b6

Please sign in to comment.