From 44068420da2e0300a41a769c45048d900a8e1c33 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 3 Mar 2023 13:51:47 +0000 Subject: [PATCH] fix(nuxi): avoid top-level await in wrapper --- packages/nuxi/src/cli-wrapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxi/src/cli-wrapper.ts b/packages/nuxi/src/cli-wrapper.ts index 58a25250ab..8a20e6ffd5 100644 --- a/packages/nuxi/src/cli-wrapper.ts +++ b/packages/nuxi/src/cli-wrapper.ts @@ -34,7 +34,7 @@ async function startSubprocess (preArgs: string[], postArgs: string[]) { const args = process.argv.slice(2) // only enable wrapper in dev command if (args[0] === 'dev') { - await startSubprocess([], args) + startSubprocess([], args) } else { - await import(cliEntry) + import(cliEntry) }