How can I implement component-centric code splitting?

Using loadable from frontity, I am able to do route-centric code splitting. Works great!

Now I want to go a step further, and do component-centric splitting for a given route. But whenever I use loadable for component-centric splitting I get the following error:

Invariant Violation: loadable: cannot find topArticle in stats

topArticle => component for which I am trying to do code splitting.

How can I implement component-centric splitting?

Hi @sarang,

In order to provide the best possible help as quickly and as efficiently as possible, can you please provide the info suggested here ?

The more info you provide about your issue the better. Providing a repo or code-sandbox with your code is especially helpful to find solutions of technical issues with specific code