Skip to content

Webpack 2 Dynamic Imports are Very Slow #2176

Closed

Description

@gaearon

While we officially support dynamic import() proposal, it is reported to have significant build performance issues (#2172 (comment), webpack/webpack#4636).

We are going to de-emphasize their support in the documentation until Webpack fixes them. I will disable the require.ensure deprecation, and will track re-enabling it in this issue.

Activity

  1. added this to the milestone on May 16, 2017
  2. gaearon commented on May 16, 2017

    @gaearon
    ContributorAuthor

    Setting this up as needing contributions. Specifically, we need somebody to help Webpack folks in webpack/webpack#4636 reliably reproduce the performance issue.

  3. ingro commented on May 24, 2017

    @ingro
    Contributor

    Release 2.6.0. of webpack improved the handling of import, maybe the dependency could be updated in react-scripts too?

  4. gaearon commented on May 24, 2017

    @gaearon
    ContributorAuthor

    Yea, we plan to bump to 2.6.0. Want to send a PR?

  5. ingro commented on May 24, 2017

    @ingro
    Contributor

    Sure, that seems an easy enough PR to start with :P

  6. gaearon commented on May 27, 2017

    @gaearon
    ContributorAuthor

    react-scripts@1.0.7 now use Webpack 2 which supports import hints: webpack/webpack#4807 (comment).
    Please give it a try!

  7. locked and limited conversation to collaborators on Jan 21, 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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions