diff options
author | 2021-07-26 18:57:09 -0700 | |
---|---|---|
committer | 2021-07-26 18:57:09 -0700 | |
commit | 5164b69b57e8c11666591823c5b83435facce5c8 (patch) | |
tree | 9670c3383142b606c41bb57699a904fc5e9e7459 /src/options.zig | |
parent | eec8f5afcf955034572321adcef986c34de7431a (diff) | |
download | bun-jarred/update-zig1.tar.gz bun-jarred/update-zig1.tar.zst bun-jarred/update-zig1.zip |
Fix build issuesjarred/update-zig1
Diffstat (limited to 'src/options.zig')
-rw-r--r-- | src/options.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.zig b/src/options.zig index 5cb32f4ef..39b3ec0d9 100644 --- a/src/options.zig +++ b/src/options.zig @@ -300,7 +300,7 @@ pub const Platform = enum { } const MAIN_FIELD_NAMES = [_]string{ "browser", "module", "main" }; - pub const DefaultMainFields: std.EnumArray(Platform, []const string) = { + pub const DefaultMainFields: std.EnumArray(Platform, []const string) = brk: { var array = std.EnumArray(Platform, []const string).initUndefined(); // Note that this means if a package specifies "module" and "main", the ES6 @@ -338,7 +338,7 @@ pub const Platform = enum { // fields is empty by default. You must explicitly configure it yourself. array.set(Platform.neutral, &([_]string{})); - return array; + break :brk array; }; }; |