parent
cd6c8d373a
commit
b8a6621e29
@ -414,9 +414,9 @@ export function createLoaderFromCompiler(
|
|||||||
babelConfig.options['rootMode'] = 'upward';
|
babelConfig.options['rootMode'] = 'upward';
|
||||||
babelConfig.options['babelrc'] = true;
|
babelConfig.options['babelrc'] = true;
|
||||||
} else {
|
} else {
|
||||||
babelConfig.options['configFile'] =
|
babelConfig.options['configFile'] = options.babelConfig
|
||||||
babelConfig.options?.['babelConfig'] ??
|
? path.join(options.root, options.babelConfig)
|
||||||
path.join(options.root, options.projectRoot, '.babelrc');
|
: path.join(options.root, options.projectRoot, '.babelrc');
|
||||||
}
|
}
|
||||||
|
|
||||||
return babelConfig;
|
return babelConfig;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user