Skip to content

Commit

Permalink
fix(nuxi): fix issue with dynamic cjs chunks
Browse files Browse the repository at this point in the history
resolves #621 via hotfix
  • Loading branch information
pi0 committed Oct 2, 2021
1 parent 5504a55 commit 2f6c5a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nuxi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2f6c5a6

Please sign in to comment.