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
truethen compile dependencies as is done now. - If set to false do not add
babel-loaderfor 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.