-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
astro.ts
35 lines (30 loc) · 646 Bytes
/
astro.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export interface AstroConfigRaw {
dist: string;
projectRoot: string;
astroRoot: string;
public: string;
jsx?: string;
}
export type ValidExtensionPlugins = 'astro' | 'react' | 'preact' | 'svelte' | 'vue';
export interface AstroConfig {
dist: string;
projectRoot: URL;
astroRoot: URL;
public: URL;
extensions?: Record<string, ValidExtensionPlugins>;
}
export interface JsxItem {
name: string;
jsx: string;
}
export interface TransformResult {
script: string;
imports: string[];
items: JsxItem[];
css?: string;
}
export interface CompileResult {
result: TransformResult;
contents: string;
css?: string;
}