Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
dadf93b2
Commit
dadf93b2
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Disable require.ensure() warning (#2177)
parent
66792dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/eslint-config-react-app/index.js
+7
-5
packages/eslint-config-react-app/index.js
with
7 additions
and
5 deletions
+7
-5
packages/eslint-config-react-app/index.js
+
7
-
5
View file @
dadf93b2
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment