diff options
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 |