mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxi): avoid top-level await in wrapper
This commit is contained in:
parent
db5ea91916
commit
44068420da
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user