Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 2675dd4

Browse files
author
Je
committed
refactor: update types.ts
1 parent 91fa5aa commit 2675dd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ export interface Plugin {
2121
name?: string
2222
/** `test` matches the import url. */
2323
test: RegExp
24+
/** `acceptHMR` accepts the HMR. */
25+
acceptHMR?: boolean
2426
/** `resolve` resolves the import url, if the `external` returned the compilation will skip the import url. */
2527
resolve?(url: string): { url: string, external?: boolean }
2628
/** `transform` transforms the source content. */
27-
transform?(content: Uint8Array, url: string): Promise<{ code: string, map?: string, loader?: 'js' | 'jsx' | 'css' | 'markdown' }>
29+
transform?(content: Uint8Array, url: string): Promise<{ code: string, map?: string, loader?: 'js' | 'ts' | 'css' | 'markdown' }>
2830
}
2931

3032
/**

0 commit comments

Comments
 (0)