Refactoring to support inlined scripts
This commit is contained in:
8
types/resolve.d.ts
vendored
Normal file
8
types/resolve.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type {DefaultTreeAdapterMap} from "parse5";
|
||||
|
||||
export interface RollupHtmlResolveContext {
|
||||
node: DefaultTreeAdapterMap['element'];
|
||||
sourceId: string;
|
||||
}
|
||||
export type ResolveResult = string|true|undefined|void|false;
|
||||
export type ResolveCallback = (id: string, resolveContext: RollupHtmlResolveContext) => ResolveResult|Promise<ResolveResult>;
|
||||
Reference in New Issue
Block a user