Skip to content

Commit

Permalink
Disable require.ensure() warning (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed May 16, 2017
1 parent 66792dd commit dadf93b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ module.exports = {
'valid-typeof': 'warn',
'no-restricted-properties': [
'error',
{
object: 'require',
property: 'ensure',
message: 'Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import',
},
// TODO: reenable once import() is no longer slow.
// https://github.com/facebookincubator/create-react-app/issues/2176
// {
// object: 'require',
// property: 'ensure',
// message: 'Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import',
// },
{
object: 'System',
property: 'import',
Expand Down

0 comments on commit dadf93b

Please sign in to comment.