jsv-compiler
Version:
use vue3 template in .js
41 lines (40 loc) • 1.18 kB
TypeScript
export var __esModule: boolean;
export var generateCodeFrame: any;
/**
* Compile `<script setup>`
* It requires the whole SFC descriptor because we need to handle and merge
* normal `<script>` + `<script setup>` if both are present.
*/
export function compileScript(sfc: any, options?: {}): any;
export function compileStyle(options: any): any;
export function compileStyleAsync(options: any): any;
export function compileTemplate(options: any): {
code: any;
source: any;
errors: any[];
tips: any[];
map: any;
ast: any;
} | {
code: string;
source: any;
tips: any[];
errors: any[];
} | {
code: string;
source: any;
tips: string[];
errors: string[];
};
export function parse(source: any, { sourceMap, filename, sourceRoot, pad, compiler }?: {
sourceMap?: boolean;
filename?: string;
sourceRoot?: string;
pad?: boolean;
compiler?: any;
}): any;
/**
* Utility for rewriting `export default` in a script block into a variable
* declaration so that we can inject things into it
*/
export function rewriteDefault(input: any, as: any, parserPlugins: any): any;