summaryrefslogtreecommitdiff
path: root/cli/tools/compile.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-11 19:00:17 -0400
committerGitHub <noreply@github.com>2024-04-11 23:00:17 +0000
commitade0cd5e97e25896457624a0ec6bf524a5fa5c20 (patch)
tree2d8ceabdd455a1e99fb458413590aba0f7f5880b /cli/tools/compile.rs
parentf1ea8ca3584c6970f4ce1dd43b9a7a9030a4be35 (diff)
fix: upgrade deno_ast related crates (#23187)
Had to revert back swc due to https://github.com/swc-project/swc/issues/8840 Fixes: - https://github.com/denoland/deno_lint/pull/1262 - https://github.com/denoland/deno_doc/pull/538 - https://github.com/denoland/deno_doc/pull/537 - https://github.com/denoland/deno_graph/pull/430 - https://github.com/denoland/deno_graph/pull/425 - https://github.com/denoland/deno_graph/pull/432
Diffstat (limited to 'cli/tools/compile.rs')
-rw-r--r--cli/tools/compile.rs13
1 files changed, 10 insertions, 3 deletions
diff --git a/cli/tools/compile.rs b/cli/tools/compile.rs
index 2825c92c7..75572cd42 100644
--- a/cli/tools/compile.rs
+++ b/cli/tools/compile.rs
@@ -73,10 +73,17 @@ pub async fn compile(
let ts_config_for_emit =
cli_options.resolve_ts_config_for_emit(deno_config::TsConfigType::Emit)?;
- let emit_options =
- crate::args::ts_config_to_emit_options(ts_config_for_emit.ts_config);
+ let (transpile_options, emit_options) =
+ crate::args::ts_config_to_transpile_and_emit_options(
+ ts_config_for_emit.ts_config,
+ );
let parser = parsed_source_cache.as_capturing_parser();
- let eszip = eszip::EszipV2::from_graph(graph, &parser, emit_options)?;
+ let eszip = eszip::EszipV2::from_graph(
+ graph,
+ &parser,
+ transpile_options,
+ emit_options,
+ )?;
log::info!(
"{} {} to {}",