diff options
author | 2021-06-09 18:11:17 -0700 | |
---|---|---|
committer | 2021-06-09 18:11:17 -0700 | |
commit | 8444492e3cfe8712ff841b36e6cab89156a3625b (patch) | |
tree | b7868c7520cf10a146481772576ff782b7fff6e6 | |
parent | 7346cdaa5a32ade26821ed97ef07f7c9ae87c0c2 (diff) | |
download | bun-8444492e3cfe8712ff841b36e6cab89156a3625b.tar.gz bun-8444492e3cfe8712ff841b36e6cab89156a3625b.tar.zst bun-8444492e3cfe8712ff841b36e6cab89156a3625b.zip |
ok
-rw-r--r-- | src/js_parser/js_parser.zig | 9 |
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; |