UNPKG

1.04 kBTypeScriptView Raw
1import { SFCCompiler, DescriptorCompileResult } from './compiler';
2export interface AssembleSource {
3 filename: string;
4 script?: {
5 source: string;
6 map?: any;
7 };
8 template?: {
9 source: string;
10 functional?: boolean;
11 };
12 styles: Array<{
13 source: string;
14 scoped?: boolean;
15 media?: string;
16 map?: any;
17 moduleName?: string;
18 module?: any;
19 }>;
20 scopeId: string;
21}
22export interface AssembleResults {
23 code: string;
24 map?: any;
25}
26export interface AssembleOptions {
27 isWebComponent?: boolean;
28 normalizer?: string;
29 styleInjector?: string;
30 styleInjectorSSR?: string;
31 styleInjectorShadow?: string;
32}
33export declare function assemble(compiler: SFCCompiler, filename: string, result: DescriptorCompileResult, options?: AssembleOptions): AssembleResults;
34export declare function assembleFromSource(compiler: SFCCompiler, options: AssembleOptions, { filename, script, template, styles, scopeId }: AssembleSource): AssembleResults;