I'm trying to make chunk flushing working and I'm failing at the 'gathering chunknames' stage.
As far as I understand it, the babel plugin adds information about the required chunk to every import() call. Then, when React adds the universal components to the tree, their chunknames are added to a Set. Finally, after the render you ask for the added chunknames and translate them to webpack files with webpack-flush-chunks.
I added log statements to requireUniversalModule and it seems like getConfig can't get the path etc.
I wrap RUC so it always uses my Loading component etc. Would that cause it? Here's an example of what the Babel plugin creates:
I'm trying to make chunk flushing working and I'm failing at the 'gathering chunknames' stage.
As far as I understand it, the babel plugin adds information about the required chunk to every
import()
call. Then, when React adds the universal components to the tree, their chunknames are added to a Set. Finally, after the render you ask for the added chunknames and translate them to webpack files with webpack-flush-chunks.I added log statements to
requireUniversalModule
and it seems like getConfig can't get the path etc.I wrap RUC so it always uses my Loading component etc. Would that cause it? Here's an example of what the Babel plugin creates:
makeSplitPoint is the name of my wrapper.