Skip to content

Commit 2d3639c

Browse files
author
Morten N.O. Henriksen
committed
Webpack config remove requireEnsure
this should be the default already in webpack 5 - to enable require ensure use https://webpack.js.org/plugins/internal-plugins/#requireensureplugin
1 parent af889e1 commit 2d3639c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,6 @@ module.exports = function (webpackEnv) {
350350
module: {
351351
strictExportPresence: true,
352352
rules: [
353-
// Disable require.ensure as it's not a standard language feature.
354-
{ parser: { requireEnsure: false } },
355353
// Handle node_modules packages that contain sourcemaps
356354
shouldUseSourceMap && {
357355
enforce: 'pre',

0 commit comments

Comments
 (0)