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 5ee464e commit b5cded3Copy full SHA for b5cded3
1 file changed
src/index.ts
@@ -218,8 +218,8 @@ function preactPlugin({
218
"classProperties",
219
"classPrivateProperties",
220
"classPrivateMethods",
221
- !id.endsWith(".ts") && "jsx",
222
- /\.tsx?$/.test(id) && "typescript",
+ !/\.[cm]?ts$/.test(id) && "jsx",
+ /\.[cm]?tsx?$/.test(id) && "typescript",
223
].filter(Boolean) as ParserPlugin[];
224
225
const result = await transformAsync(code, {
0 commit comments