diff options
Diffstat (limited to 'runtime/shared.rs')
-rw-r--r-- | runtime/shared.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/shared.rs b/runtime/shared.rs index 35712dfb3..04fcdcfdb 100644 --- a/runtime/shared.rs +++ b/runtime/shared.rs @@ -84,7 +84,7 @@ pub fn maybe_transpile_source( let code = source.load()?; let parsed = deno_ast::parse_module(ParseParams { - specifier: source.specifier.to_string(), + specifier: deno_core::url::Url::parse(source.specifier).unwrap(), text_info: SourceTextInfo::from_string(code.as_str().to_owned()), media_type, capture_tokens: false, |