diff options
author | Luca Casonato <hello@lcas.dev> | 2024-04-17 21:15:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 19:15:02 +0000 |
commit | 71a1fa4c2ee2b5eab04e3293c116edd72177ba26 (patch) | |
tree | 2a4f3a740d193c8ef6a600bc0a85d8688268e08b /runtime/shared.rs | |
parent | b3d7df55357ea6fc6f5141b64a9638ddb39b0f63 (diff) |
fix(publish): support import equals (#23421)
Diffstat (limited to 'runtime/shared.rs')
-rw-r--r-- | runtime/shared.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/shared.rs b/runtime/shared.rs index e18b0b93c..946f33c6f 100644 --- a/runtime/shared.rs +++ b/runtime/shared.rs @@ -96,7 +96,7 @@ pub fn maybe_transpile_source( maybe_syntax: None, })?; let transpiled_source = parsed - .transpile_owned( + .transpile( &deno_ast::TranspileOptions { imports_not_used_as_values: deno_ast::ImportsNotUsedAsValues::Remove, ..Default::default() @@ -109,8 +109,8 @@ pub fn maybe_transpile_source( }, ..Default::default() }, - ) - .unwrap()?; + )? + .into_source(); let maybe_source_map: Option<SourceMapData> = transpiled_source .source_map |