简化模块加载

deprecated hydro-build
This commit is contained in:
undefined committed 2020-07-15 20:46:45 +08:00
1 parent 8aef05a375
commit 8f6968bbbd
41 files changed
+1361 -1957

No files matched your search

+3 -1
View File
@@ -42,7 +42,9 @@ async function terminate() {
}
async function fork(args: string[] = []) {
cluster.setupMaster({ args });
const _args = process.argv.slice(2);
_args.push(...args);
cluster.setupMaster({ args: _args });
return cluster.fork();
}