mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bump version
This commit is contained in:
43 files changed
+96
-53
No files matched your search
@@ -52,7 +52,8 @@ export async function apply(ctx: Context) {
|
||||
render: async (name, args, context) => await vite.transformIndexHtml(context.handler.context.req.url, html),
|
||||
});
|
||||
|
||||
ctx.on('dispose', async () => {
|
||||
// eslint-disable-next-line consistent-return
|
||||
return async () => {
|
||||
await vite.close().catch((e) => console.error(e));
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user