Don't mutate user's babel config (#6987)

Don't mutate user's babel config
This commit is contained in:
Michael Shilman 2019-06-05 17:00:48 -07:00 committed by GitHub
commit 477f990494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ function loadFromPath(babelConfigPath) {
throw error.js;
}
config.babelrc = false;
config = { ...config, babelrc: false };
}
if (!config) return null;