aboutsummaryrefslogtreecommitdiff
path: root/src/resolver
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolver')
-rw-r--r--src/resolver/package_json.zig8
-rw-r--r--src/resolver/resolver.zig4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/resolver/package_json.zig b/src/resolver/package_json.zig
index f7ff5f3e4..6cfe759ef 100644
--- a/src/resolver/package_json.zig
+++ b/src/resolver/package_json.zig
@@ -1043,7 +1043,7 @@ pub const ExportsMap = struct {
switch (expr.data) {
.e_null => {
- return Entry{ .first_token = js_lexer.rangeOfIdentifier(this.source, expr.loc), .data = .{ .null = void{} } };
+ return Entry{ .first_token = js_lexer.rangeOfIdentifier(this.source, expr.loc), .data = .{ .null = {} } };
},
.e_string => |str| {
return Entry{
@@ -1103,7 +1103,7 @@ pub const ExportsMap = struct {
map_data.deinit(this.allocator);
this.allocator.free(expansion_keys);
return Entry{
- .data = .{ .invalid = void{} },
+ .data = .{ .invalid = {} },
.first_token = first_token,
};
}
@@ -1157,7 +1157,7 @@ pub const ExportsMap = struct {
this.log.addRangeWarning(this.source, first_token, "This value must be a string, an object, an array, or null") catch unreachable;
return Entry{
- .data = .{ .invalid = void{} },
+ .data = .{ .invalid = {} },
.first_token = first_token,
};
}
@@ -1509,7 +1509,7 @@ pub const ESModule = struct {
}
if (strings.eqlComptime(subpath, ".")) {
- var main_export = ExportsMap.Entry{ .data = .{ .null = void{} }, .first_token = logger.Range.None };
+ var main_export = ExportsMap.Entry{ .data = .{ .null = {} }, .first_token = logger.Range.None };
if (switch (exports.data) {
.string,
.array,
diff --git a/src/resolver/resolver.zig b/src/resolver/resolver.zig
index da2753772..4ef2c4819 100644
--- a/src/resolver/resolver.zig
+++ b/src/resolver/resolver.zig
@@ -1919,7 +1919,7 @@ pub const Resolver = struct {
}
var dir_iterator = open_dir.iterate();
while (dir_iterator.next() catch null) |_value| {
- dir_entries_option.entries.addEntry(_value, allocator, void, void{}) catch unreachable;
+ dir_entries_option.entries.addEntry(_value, allocator, void, {}) catch unreachable;
}
}
@@ -2535,7 +2535,7 @@ pub const Resolver = struct {
}
var dir_iterator = open_dir.iterate();
while (try dir_iterator.next()) |_value| {
- dir_entries_option.entries.addEntry(_value, allocator, void, void{}) catch unreachable;
+ dir_entries_option.entries.addEntry(_value, allocator, void, {}) catch unreachable;
}
}