|
|
|
@ -83,9 +83,10 @@ export interface CustomElementOptions {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PreprocessOptions {
|
|
|
|
|
markup?: (options: {content: string}) => { code: string, map?: SourceMap | string };
|
|
|
|
|
markup?: (options: {content: string, options: PreprocessOptions}) => { code: string, map?: SourceMap | string };
|
|
|
|
|
style?: Preprocessor;
|
|
|
|
|
script?: Preprocessor;
|
|
|
|
|
id?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type Preprocessor = (options: {content: string, attributes: Record<string, string | boolean>}) => { code: string, map?: SourceMap | string };
|
|
|
|
|
export type Preprocessor = (options: {content: string, attributes: Record<string, string | boolean>, options: PreprocessOptions}) => { code: string, map?: SourceMap | string };
|
|
|
|
|