Skip to content

Possible performance tuning for webpack config in react-scripts #12182

@rluvaton

Description

@rluvaton

Is your proposal related to a problem?

Yes, building react app is very slow for our company

Describe the solution you'd like

In the webpack config we use cacheDirectory for babel-loader, I think it would be faster to set it true only if not running in CI - which as far as I know doesn't need faster rebuild as it only build once...

https://github.com/facebook/create-react-app/blob/fd8c5f7b1b1d19d10d24cc2f9fdfc110585dc030/packages/react-scripts/config/webpack.config.js#L455-L458

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions