Skip to content

Commit eef89cc

Browse files
committed
fix webpack config
1 parent e7185fd commit eef89cc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ module.exports = {
145145
include: paths.appSrc,
146146
},
147147

148-
// Avoid "require is not defined" errors
149-
{
150-
test: /\.mjs$/,
151-
include: /node_modules/,
152-
type: 'javascript/auto',
153-
},
154-
155148
{
156149
// "oneOf" will traverse all following loaders until one will
157150
// match the requirements. When no loader matches it will fall

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ module.exports = {
153153
include: paths.appSrc,
154154
},
155155

156-
// Avoid "require is not defined" errors
157-
{
158-
test: /\.mjs$/,
159-
include: /node_modules/,
160-
type: 'javascript/auto',
161-
},
162-
163156
{
164157
// "oneOf" will traverse all following loaders until one will
165158
// match the requirements. When no loader matches it will fall

0 commit comments

Comments
 (0)