mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 08:09:06 -05:00
13 lines
324 B
Rust
13 lines
324 B
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
use deno_ast::ParsedSource;
|
|
use swc::serialize_swc_to_buffer;
|
|
|
|
mod buffer;
|
|
mod swc;
|
|
mod ts_estree;
|
|
|
|
pub fn serialize_ast_to_buffer(parsed_source: &ParsedSource) -> Vec<u8> {
|
|
// TODO: We could support multiple languages here
|
|
serialize_swc_to_buffer(parsed_source)
|
|
}
|