Discrepancies between SSR Example and Documentation
See original GitHub issue💬 Questions and Help
Loadable Components project is young, but please before asking your question:
- Read carefully the README of the project
- Search if your answer has already been answered in old issues
After you can submit your question and we will be happy to help you!
Hi all, I am confused by the example for server-side-rendering.
In the example, there is both a nodeExtractor
and a webExtractor
. The nodeExtractor
ends up using requireEntryPoints
but webExtractor
does not. Could someone explain to me the need for an extractor for node and a separate one for web? Furthermore, why does nodeExtractor utilize requireEntryPoints
instead of specifying entrypoints in the constructor of ChunkExtractor?
Why are the above points also missing from the documentation?
Furthermore, I see a lot of specific changes to webpack.config.babel.js
and babel.config.js
that was not mentioned in the Documentation. What were the need for these changes in the example? Does the documentation need to be updated to reflect the same?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:11 (4 by maintainers)
Top GitHub Comments
@imthinhvu - I’m running into the exact same problem you described. Mind sharing your solution?
@neoziro - I laid out the differences when I opened the issue, can you please take a look if you haven’t yet? Primarily referencing need for
nodeExtractor
vswebExtractor
, and use ofrequireEntrypoints
– these are all part of the SSR example, but not in the documentation.