mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 09:57:14 +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)
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user