mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(babel): not override presets if babelrc is true (#7297)
This commit is contained in:
parent
8538368837
commit
ab3ff4de00
@ -98,7 +98,7 @@ export default class WebpackBaseConfig {
|
||||
envName
|
||||
}
|
||||
|
||||
if (options.configFile !== false) {
|
||||
if (options.configFile || options.babelrc) {
|
||||
return options
|
||||
}
|
||||
|
||||
@ -114,7 +114,7 @@ export default class WebpackBaseConfig {
|
||||
)
|
||||
}
|
||||
|
||||
if (!options.babelrc && !options.presets) {
|
||||
if (!options.presets) {
|
||||
options.presets = [defaultPreset]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user