diff options
author | 2021-03-21 00:44:42 -0700 | |
---|---|---|
committer | 2021-03-21 00:44:42 -0700 | |
commit | 417657f138fbc5e194df3dd511e3b9c8e53920fd (patch) | |
tree | c15f73c625d3c222304557f4f753204c65304607 /src/compiler/interfaces.ts | |
parent | 2082001ff8702ec48072b59caafe85573a3b2891 (diff) | |
download | astro-417657f138fbc5e194df3dd511e3b9c8e53920fd.tar.gz astro-417657f138fbc5e194df3dd511e3b9c8e53920fd.tar.zst astro-417657f138fbc5e194df3dd511e3b9c8e53920fd.zip |
lots of improvements
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; |