From 01a9364a7a7cd1a5716b20c0448aef8ea0ab8018 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 26 Aug 2021 21:51:51 +0800 Subject: [PATCH] fix: types for load hook --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 7e002cb9..16576145 100644 --- a/src/types.ts +++ b/src/types.ts @@ -16,7 +16,7 @@ export interface UnpluginOptions { enforce?: 'post' | 'pre' | undefined; transformInclude?: (id: string) => boolean; transform?: (this: UnpluginContext, code: string, id: string) => Thenable; - load?: (this: UnpluginContext, id?:string) => Thenable + load?: (this: UnpluginContext, id: string) => Thenable resolveId?: (id: string, importer?: string) => Thenable // framework specify extends