mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix load
This commit is contained in:
1 parent
aeb9d4cf50
commit
dec3170524
3 files changed
+20
-6
No files matched your search
@@ -42,6 +42,11 @@ export async function apply(ctx: Context) {
|
||||
ctx.plugin(require('../service/hmr').default, { watch: argv.options.watch });
|
||||
await require('../service/worker').apply(ctx);
|
||||
await require('../service/server').apply(ctx);
|
||||
ctx = await new Promise((resolve) => {
|
||||
ctx.inject(['server'], (c) => {
|
||||
resolve(c);
|
||||
});
|
||||
});
|
||||
await require('../service/api').apply(ctx);
|
||||
require('../lib/index');
|
||||
await lib(pending, fail, ctx);
|
||||
|
||||
Reference in new issue
Block a user