Skip to content

Commit c973c7f

Browse files
everdimensionTimer
authored andcommitted
Redisable require.ensure() (facebook#3121)
1 parent 081aeac commit c973c7f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

config/webpack.config.dev.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@ module.exports = {
117117
module: {
118118
strictExportPresence: true,
119119
rules: [
120-
// TODO: Disable require.ensure as it's not a standard language feature.
121-
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
122-
// { parser: { requireEnsure: false } },
120+
// Disable require.ensure as it's not a standard language feature.
121+
{ parser: { requireEnsure: false } },
123122

124123
// First, run the linter.
125124
// It's important to do this before Babel processes the JS.

config/webpack.config.prod.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@ module.exports = {
124124
module: {
125125
strictExportPresence: true,
126126
rules: [
127-
// TODO: Disable require.ensure as it's not a standard language feature.
128-
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
129-
// { parser: { requireEnsure: false } },
127+
// Disable require.ensure as it's not a standard language feature.
128+
{ parser: { requireEnsure: false } },
130129

131130
// First, run the linter.
132131
// It's important to do this before Babel processes the JS.

0 commit comments

Comments
 (0)