Skip to content

Commit b988f84

Browse files
Ercilansonofmagic
authored andcommitted
chore: refine js-related file extension matching
1 parent 44a7762 commit b988f84

File tree

1 file changed

+1
-1
lines changed
  • packages/unplugin-tailwindcss-mangle/src/core

1 file changed

+1
-1
lines changed

packages/unplugin-tailwindcss-mangle/src/core/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const factory: UnpluginFactory<TransformerOptions | undefined> = (options) => {
3333
ctx,
3434
id,
3535
}
36-
if (/\.[jt]sx?(?:$|\?)/.test(id)) {
36+
if (/\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
3737
return jsHandler(code, opts)
3838
}
3939
else if (/\.(?:vue|svelte)(?:$|\?)/.test(id)) {

0 commit comments

Comments
 (0)