Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable babel-loader's cacheCompression #7633

Merged
merged 1 commit into from Sep 9, 2019
Merged

Disable babel-loader's cacheCompression #7633

merged 1 commit into from Sep 9, 2019

Commits on Sep 3, 2019

  1. Disable babel-loader's cacheCompression

    `cacheCompression` is an enabled-by-default flag in babel-loader,
    which gzips the babel-loader cache.
    
    Most projects do not actually benefit from cache compression,
    especially in production where builds often happen in a CI environment
    where memory is precious and disk space is not.
    
    Furthermore, having it disabled in dev and enabled in prod means caching
    won't be shared between dev and prod.
    
    Finally, the disk space savings are not that great. Most React projects
    will have a lot of small files (one file per component). babel-loader
    caches each file as a unit, so the compression overhead increases when
    the project is mainly lots of small files.
    
    For these reasons, we're disabling cache compression.
    
    Closes #6846
    jleclanche committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    f538b53 View commit details
    Browse the repository at this point in the history