Skip to content

Commit 9cc7667

Browse files
committed
Don't allow workers with jsx or tsx extension
1 parent 5ae1a34 commit 9cc7667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ module.exports = function(webpackEnv) {
354354
// Process WebWorker JS with Babel.
355355
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
356356
{
357-
test: /\.worker\.(js|mjs|jsx|ts|tsx)$/,
357+
test: /\.worker\.(js|mjs|ts)$/,
358358
include: paths.appSrc,
359359
use: [
360360
require.resolve('worker-loader'),

0 commit comments

Comments
 (0)