mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-30 02:15:52 +08:00
Redisable require.ensure() (#3121)
This commit is contained in:
committed by
Joe Haddad
parent
3c3547f942
commit
813584ff35
@@ -225,13 +225,12 @@ module.exports = {
|
||||
'valid-typeof': 'warn',
|
||||
'no-restricted-properties': [
|
||||
'error',
|
||||
// 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://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#code-splitting',
|
||||
// },
|
||||
{
|
||||
object: 'require',
|
||||
property: 'ensure',
|
||||
message:
|
||||
'Please use import() instead. More info: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#code-splitting',
|
||||
},
|
||||
{
|
||||
object: 'System',
|
||||
property: 'import',
|
||||
|
||||
Reference in New Issue
Block a user