React: Name chunk when lazily importing with React.Suspense

Created on 28 Nov 2018  路  2Comments  路  Source: facebook/react

Do you want to request a feature or report a bug?
Feature.

What is the current behavior?
I can't provide a way to name the newly created chunk.

What is the expected behavior?
Be able to name the chunk when using React.Suspense, similar to import(/* webpackChunkName: "print" */` syntax.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
16.6.3

Most helpful comment

could you share an example repo of this not working? it should just work. in any case, this is probably a bug you should file with webpack, not react.

All 2 comments

could you share an example repo of this not working? it should just work. in any case, this is probably a bug you should file with webpack, not react.

Ah yes, apologies it is working as expected!

Was this page helpful?
0 / 5 - 0 ratings