mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix for #3197.
This commit is contained in:
parent
e4ee624011
commit
ba4aa6dc09
@ -16,7 +16,13 @@ exports.loadNuxtConfig = argv => {
|
||||
let options = {}
|
||||
|
||||
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') {
|
||||
consola.fatal('Could not load config file: ' + argv['config-file'])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user