diff options
Diffstat (limited to 'src/compiler/interfaces.ts')
-rw-r--r-- | src/compiler/interfaces.ts | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/compiler/interfaces.ts b/src/compiler/interfaces.ts index bedb29cda..b77357d23 100644 --- a/src/compiler/interfaces.ts +++ b/src/compiler/interfaces.ts @@ -58,7 +58,7 @@ export interface Parser { export interface Script extends BaseNode { type: 'Script'; - context: string; + context: 'runtime' | 'setup'; content: string; } @@ -75,8 +75,8 @@ export interface Style extends BaseNode { export interface Ast { html: TemplateNode; css: Style; - instance: Script; module: Script; + // instance: Script; } export interface Warning { @@ -94,38 +94,6 @@ export type ModuleFormat = 'esm' | 'cjs'; export type CssHashGetter = (args: { name: string; filename: string | undefined; css: string; hash: (input: string) => string }) => string; -export interface CompileOptions { - format?: ModuleFormat; - name?: string; - filename?: string; - generate?: 'dom' | 'ssr' | false; - - sourcemap?: object | string; - outputFilename?: string; - cssOutputFilename?: string; - sveltePath?: string; - - dev?: boolean; - accessors?: boolean; - immutable?: boolean; - hydratable?: boolean; - legacy?: boolean; - customElement?: boolean; - tag?: string; - css?: boolean; - loopGuardTimeout?: number; - namespace?: string; - cssHash?: CssHashGetter; - - preserveComments?: boolean; - preserveWhitespace?: boolean; -} - -export interface ParserOptions { - filename?: string; - customElement?: boolean; -} - export interface Visitor { enter: (node: Node) => void; leave?: (node: Node) => void; |