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

Add COMPILE_DEPENDENCIES build setting #8393

Closed

Conversation

DylanVann
Copy link

This adds a setting to disable the running of babel-loader on dependencies.

Adding babel-loader on dependencies significantly impacts build time. The impact of this can be up to an extra minute.

This PR reads the COMPILE_DEPENDENCIES environment variable.

  • If unset or true then compile dependencies as is done now.
  • If set to false do not add babel-loader for dependencies.

This is adding more configuration, and may not be in line with the direction of CRA (less config), but it could help people experiencing high build times who know their dependencies do not contain code breaking in their target browsers.

@DylanVann DylanVann closed this May 11, 2020
@lock lock bot locked and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants