From 32dfaf5adc9db5e87995c67a7060169cbf835b09 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 14 Mar 2023 16:24:25 +0800 Subject: [PATCH] fix(types): allow void return in transformHead hook --- src/node/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/config.ts b/src/node/config.ts index 2cdaeb5f..26667380 100644 --- a/src/node/config.ts +++ b/src/node/config.ts @@ -123,7 +123,7 @@ export interface UserConfig * * This build hook will allow you to modify the head adding new entries that cannot be statically added. */ - transformHead?: (context: TransformContext) => Awaitable + transformHead?: (context: TransformContext) => Awaitable /** * HTML transform hook: runs before writing HTML to dist.