Skip to content

Code Splitting / Lazy loading #49

@dbrxnds

Description

@dbrxnds

Currently there is no documentation or way to code split (as far as I could find) using the ReactBundle setup as shown in the tutorial.

I have tried using React Lazy as well as regular JS dynamic imports including different Webpack settings in both cases but the end result remains a single verisoned app.js file.

My theory is that the ReactOnRails.register() function combines all components thus defeating the purpose of code splitting.

Could anyone point me in the right direction on how to approach this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions