diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2021-09-08 14:05:34 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-08 14:05:34 +1000 |
| commit | bf6dbf9855cb21d27838c56932c7536c0cd80a55 (patch) | |
| tree | 2a175ada4300064d0b6f54b20f475f6bc436a8c3 /cli | |
| parent | 48331030111e9d346f054156fe24bc600a57e100 (diff) | |
fix(cli): better handling of source maps (#11954)
Ref: #11874
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/ast/bundle_hook.rs | 8 | ||||
| -rw-r--r-- | cli/ast/mod.rs | 16 | ||||
| -rw-r--r-- | cli/ast/transforms.rs | 3 | ||||
| -rw-r--r-- | cli/config_file.rs | 1 | ||||
| -rw-r--r-- | cli/module_graph.rs | 35 | ||||
| -rw-r--r-- | cli/tools/repl.rs | 1 |
6 files changed, 34 insertions, 30 deletions
diff --git a/cli/ast/bundle_hook.rs b/cli/ast/bundle_hook.rs index 8e5b56c32..6b29bd8dd 100644 --- a/cli/ast/bundle_hook.rs +++ b/cli/ast/bundle_hook.rs @@ -14,18 +14,12 @@ impl Hook for BundleHook { ) -> Result<Vec<deno_ast::swc::ast::KeyValueProp>, AnyError> { use deno_ast::swc::ast; - // we use custom file names, and swc "wraps" these in `<` and `>` so, we - // want to strip those back out. - let mut value = module_record.file_name.to_string(); - value.pop(); - value.remove(0); - Ok(vec