Skip to content

Commit 6914756

Browse files
committed
Don't allow workers with jsx or tsx extension
1 parent 24ca900 commit 6914756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ module.exports = function(webpackEnv) {
345345
// Process WebWorker JS with Babel.
346346
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
347347
{
348-
test: /\.worker\.(js|mjs|jsx|ts|tsx)$/,
348+
test: /\.worker\.(js|mjs|ts)$/,
349349
include: paths.appSrc,
350350
use: [
351351
require.resolve('worker-loader'),

0 commit comments

Comments
 (0)