core: fix load

This commit is contained in:
undefined committed 2025-03-04 10:01:55 +08:00
1 parent aeb9d4cf50
commit dec3170524
3 files changed
+20 -6

No files matched your search

+5
View File
@@ -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);