fix(nuxi): fix issue with dynamic cjs chunks

resolves #621 via hotfix
This commit is contained in:
Pooya Parsa 2021-10-02 16:05:26 +02:00
parent 64c73b09a1
commit 0c4b442ccb

View File

@ -29,7 +29,8 @@ async function _main () {
}
try {
const cmd = await commands[command as Command]().then(c => c.default || c) as NuxtCommand
// @ts-ignore default.default is hotfix for #621
const cmd = await commands[command as Command]().then(c => c.default.default) as NuxtCommand
if (args.h || args.help) {
showHelp(cmd.meta)
} else {