aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser/js_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_parser/js_parser.zig')
-rw-r--r--src/js_parser/js_parser.zig9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig
index 81ab8e2d6..f43762db5 100644
--- a/src/js_parser/js_parser.zig
+++ b/src/js_parser/js_parser.zig
@@ -2869,13 +2869,8 @@ pub fn NewParser(
p.require_ref = try p.declareCommonJSSymbol(.unbound, "require");
- if (p.options.output_commonjs) {
- p.exports_ref = try p.declareCommonJSSymbol(.hoisted, "exports");
- p.module_ref = try p.declareCommonJSSymbol(.hoisted, "module");
- } else {
- p.exports_ref = try p.declareSymbol(.hoisted, logger.Loc.Empty, "exports");
- p.module_ref = try p.declareSymbol(.hoisted, logger.Loc.Empty, "module");
- }
+ p.exports_ref = try p.declareSymbol(.hoisted, logger.Loc.Empty, "exports");
+ p.module_ref = try p.declareSymbol(.hoisted, logger.Loc.Empty, "module");
p.runtime_imports.__require = p.require_ref;