fix(nuxi): avoid top-level await in wrapper

This commit is contained in:
Daniel Roe 2023-03-03 13:51:47 +00:00
parent db5ea91916
commit 44068420da

View File

@ -34,7 +34,7 @@ async function startSubprocess (preArgs: string[], postArgs: string[]) {
const args = process.argv.slice(2) const args = process.argv.slice(2)
// only enable wrapper in dev command // only enable wrapper in dev command
if (args[0] === 'dev') { if (args[0] === 'dev') {
await startSubprocess([], args) startSubprocess([], args)
} else { } else {
await import(cliEntry) import(cliEntry)
} }