Create-react-app: Enable webpack v2 performance hints

Created on 11 Feb 2017  路  5Comments  路  Source: facebook/create-react-app

  • [x] [Add lint rule to disallow require.ensure](https://github.com/facebookincubator/create-react-app/issues/1524) (https://github.com/facebookincubator/create-react-app/pull/1536)
  • [x] [Add support for dynamic import()](https://github.com/facebookincubator/create-react-app/issues/1192) (#1538)
  • [ ] Document dynamic import

  • [ ] Tune performance hint thresholds

  • [ ] https://github.com/webpack/webpack/issues/4292

underlying tools

Most helpful comment

btw. you can disable require.ensure in webpack 2.

module: {
  rules: [
    { parser: { requireEnsure: false } }
  ]
}

All 5 comments

btw. you can disable require.ensure in webpack 2.

module: {
  rules: [
    { parser: { requireEnsure: false } }
  ]
}

Neat, thanks @sokra!

We should probably watch https://github.com/webpack/webpack/issues/4292 (unrelated to this issue, but something to not forget about when cutting 0.10.0).

Going to push this back to 0.11.

We've added our own performance hints about post-compression size, closing this as unnecessary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnachtigall picture jnachtigall  路  3Comments

rdamian3 picture rdamian3  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  3Comments

fson picture fson  路  3Comments

Aranir picture Aranir  路  3Comments