-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
index.ts
27 lines (26 loc) 路 941 Bytes
/
index.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
import type { ResolvedOptions } from '../../types'
import { AstroCompiler } from './astro'
import { JSXCompiler } from './jsx'
import { MarkoCompiler } from './marko'
import { NoneCompiler } from './none'
import { QwikCompiler } from './qwik'
import { RawCompiler } from './raw'
import { SolidCompiler } from './solid'
import { SvelteCompiler } from './svelte'
import type { Compiler, CustomCompiler } from './types'
import { Vue2Compiler } from './vue2'
import { Vue3Compiler } from './vue3'
import { WebComponentsCompiler } from './web-components'
export const compilers: Record<Exclude<ResolvedOptions['compiler'], CustomCompiler>, Compiler> = {
'astro': AstroCompiler,
'jsx': JSXCompiler,
'marko': MarkoCompiler,
'none': NoneCompiler,
'raw': RawCompiler,
'solid': SolidCompiler,
'svelte': SvelteCompiler,
'vue2': Vue2Compiler,
'vue3': Vue3Compiler,
'web-components': WebComponentsCompiler,
'qwik': QwikCompiler,
}