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
  • !8393

Add COMPILE_DEPENDENCIES build setting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/DylanVann/compile-dependencies-setting into master Jan 29, 2020
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: DylanVann

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/DylanVann/compile-dependencies-setting