Skip to content

Commit f79433c

Browse files
committed
feat(compiler): include ast in compile result
1 parent d6852c5 commit f79433c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/compiler-core/src/codegen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface CodegenOptions {
5353

5454
export interface CodegenResult {
5555
code: string
56+
ast: RootNode
5657
map?: RawSourceMap
5758
}
5859

@@ -183,6 +184,7 @@ export function generate(
183184
deindent()
184185
push(`}`)
185186
return {
187+
ast,
186188
code: context.code,
187189
map: context.map ? context.map.toJSON() : undefined
188190
}

0 commit comments

Comments
 (0)