diff options
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 2 |
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 { |