Skip to content

Commit

Permalink
fix: Support .cjs/.mjs (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Jun 25, 2024
1 parent 1299422 commit 6a42afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function preactPlugin({

let useBabel: boolean;
const shouldTransform = createFilter(
include || [/\.[tj]sx?$/],
include || [/\.[cm]?[tj]sx?$/],
exclude || [/node_modules/],
);

Expand Down

0 comments on commit 6a42afe

Please sign in to comment.