Remove unnecessary babel bridge installation in installBabel

This commit is contained in:
Pavan Kumar Sunkara 2018-08-22 18:23:22 +02:00
parent 94a049c2f5
commit f1cf6d277b

View File

@ -174,11 +174,6 @@ export async function installBabel(npmOptions, packageJson) {
packageJson.dependencies['babel-core'] || packageJson.devDependencies['babel-core'];
if (!babelCoreVersion) {
packageJson.devDependencies['babel-core'] = await getVersion(
npmOptions,
'babel-core',
'^7.0.0-bridge.0'
);
if (!packageJson.dependencies['@babel/core'] && !packageJson.devDependencies['@babel/core']) {
packageJson.devDependencies['@babel/core'] = await getVersion(npmOptions, '@babel/core');
}