aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-23 05:57:40 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-23 05:57:40 -0700
commit68c8377d76c6e1271e25f862614ce9270a64857d (patch)
tree593abaf3066e31eba38d96daf6a7e220398b718a /src/js_parser.zig
parentec0e931e9f7934f4f1f7617eac2a880d13794d0c (diff)
downloadbun-jarred/cjs2.tar.gz
bun-jarred/cjs2.tar.zst
bun-jarred/cjs2.zip
WIP concurrent CommonJSjarred/cjs2
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r--src/js_parser.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index e4dbaf25b..73a91b225 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -11669,6 +11669,7 @@ fn NewParser_(
.kind = kind,
.range = range,
.path = path,
+ .is_top_level_require = kind == .require and p.current_scope.parent == null,
};
p.import_records.append(record) catch unreachable;
return @as(u32, @intCast(index));