We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0523d6 commit 4cf06b6Copy full SHA for 4cf06b6
src/transform.ts
@@ -9,7 +9,7 @@ import hashId from 'hash-sum'
9
10
export const COMP_IDENTIFIER = `__sfc__`
11
12
-const REGEX_JS = /\.[jt]sx?/
+const REGEX_JS = /\.[jt]sx?$/
13
function testTs(filename: string | undefined | null) {
14
return !!(filename && /(\.|\b)tsx?$/.test(filename))
15
}
0 commit comments