Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !5030

Disable webpack chunk coalescing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/Timer/feature/fix-chunking into next Sep 18, 2018
  • Overview 6
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: Timer

closes: https://github.com/facebook/create-react-app/issues/4977, closes https://github.com/facebook/create-react-app/issues/4632, closes https://github.com/facebook/create-react-app/issues/4769, closes https://github.com/facebook/create-react-app/issues/4633


Disabling chunk rollup results in much better bundle distribution. Off topic, it also makes webpack blazing fast!

This is the recommendation made in the code splitting blog post by @sokra.

It says setting { name: false } will prevent bundle invalidation as more chunks are added, but we'll see ...

v1.1.4 Optimal chunk distribution, 65 second build time:

v2.0.0-next.a671462c Suboptimal chunk rollup (see 1MB chunk, 91 second build time):

This PR: Optimal chunk distribution (compare to v1, 56 second build time):

This PR + Warm Cache (39 seconds!!!):

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Timer/feature/fix-chunking