Skip to content

Commit 5ae1a34

Browse files
committed
Add support for writing WebWorkers in TypeScript
1 parent 8ff30b0 commit 5ae1a34

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
@@ -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|jsx|mjs)$/,
357+
test: /\.worker\.(js|mjs|jsx|ts|tsx)$/,
358358
include: paths.appSrc,
359359
use: [
360360
require.resolve('worker-loader'),

0 commit comments

Comments
 (0)