diff options
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r-- | src/js_parser.zig | 1 |
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)); |