mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix for #3197.
This commit is contained in:
parent
e4ee624011
commit
ba4aa6dc09
@ -16,7 +16,13 @@ exports.loadNuxtConfig = argv => {
|
|||||||
let options = {}
|
let options = {}
|
||||||
|
|
||||||
if (existsSync(nuxtConfigFile)) {
|
if (existsSync(nuxtConfigFile)) {
|
||||||
options = esm(nuxtConfigFile).default
|
options = esm(nuxtConfigFile)
|
||||||
|
if (!options) {
|
||||||
|
options = {}
|
||||||
|
}
|
||||||
|
if (options.default) {
|
||||||
|
options = options.default
|
||||||
|
}
|
||||||
} else if (argv['config-file'] !== 'nuxt.config.js') {
|
} else if (argv['config-file'] !== 'nuxt.config.js') {
|
||||||
consola.fatal('Could not load config file: ' + argv['config-file'])
|
consola.fatal('Could not load config file: ' + argv['config-file'])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user