summaryrefslogtreecommitdiff
path: root/cli/module_loader.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-31 13:46:58 -0400
committerGitHub <noreply@github.com>2023-07-31 17:46:58 +0000
commit99daad054102dbca7fad704d5e81ada1357331fd (patch)
treee38e9b15d94b4d7b0dccb181129f29397c0ad078 /cli/module_loader.rs
parent6b74a6f0b6ce8bf8e41a19ab771d1a051cb34467 (diff)
refactor: NodeCodeTranslator - optional source to translate_cjs_to_esm (#20000)
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r--cli/module_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs
index 8395016b3..6f1a23761 100644
--- a/cli/module_loader.rs
+++ b/cli/module_loader.rs
@@ -782,7 +782,7 @@ impl NpmModuleLoader {
// translate cjs to esm if it's cjs and inject node globals
self.node_code_translator.translate_cjs_to_esm(
specifier,
- &code,
+ Some(code.as_str()),
permissions,
)?
} else {