Skip to content

Add Support to Code Splitting && Dynamic import #2015

Closed
@shai32

Description

@shai32

Does create-react-app support this?
https://webpack.js.org/guides/code-splitting-async/

is there any docs, explaining how to use it?

Activity

gaearon

gaearon commented on Apr 22, 2017

@gaearon
Contributor

Yes. There are no docs yet because we'll switch approach in next version. Once we do, we'll document it.

For now, use require.ensure(): https://webpack.js.org/guides/code-splitting-async/#require-ensure-.

In 0.10, we will support import() instead: https://webpack.js.org/guides/code-splitting-async/#dynamic-import-import-.

locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @gaearon@shai32

        Issue actions

          Add Support to Code Splitting && Dynamic import · Issue #2015 · facebook/create-react-app