Skip to content

Commit

Permalink
Add React .tsx and .jsx to supportedFileTypes in worker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBlais authored Jan 20, 2025
1 parent 490d902 commit e40cc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class Worker<
}
processor = processor.href;
} else {
const supportedFileTypes = ['.js', '.ts', '.flow', '.cjs'];
const supportedFileTypes = ['.js', '.ts', '.flow', '.cjs', '.tsx', '.jsx'];
const processorFile =
processor +
(supportedFileTypes.includes(path.extname(processor)) ? '' : '.js');
Expand Down

0 comments on commit e40cc15

Please sign in to comment.