mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:11:08 +08:00
Remove unnecessary babel bridge installation in installBabel
This commit is contained in:
parent
94a049c2f5
commit
f1cf6d277b
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user