diff options
author | 2023-08-02 18:46:57 -0700 | |
---|---|---|
committer | 2023-08-02 18:46:57 -0700 | |
commit | aaaaf744a80bc2876b4edc174a0d86c11625ec20 (patch) | |
tree | d0dc3a8b713c2f88f7a3acfc7b6faf8d5f2eb003 /src | |
parent | 207c7eb50955eb6f8f4b92fbf5a5955c23ec7e65 (diff) | |
download | bun-aaaaf744a80bc2876b4edc174a0d86c11625ec20.tar.gz bun-aaaaf744a80bc2876b4edc174a0d86c11625ec20.tar.zst bun-aaaaf744a80bc2876b4edc174a0d86c11625ec20.zip |
Remove module and browser conditions (#3935)
* fix astro compiler
* clean this up
* Update options.zig
---------
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/options.zig | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/src/options.zig b/src/options.zig index f6b955a47..4f64f60c6 100644 --- a/src/options.zig +++ b/src/options.zig @@ -594,37 +594,22 @@ pub const Target = enum { array.set(Target.node, &[_]string{ "node", - "module", }); - - var listc = [_]string{ + array.set(Target.browser, &[_]string{ "browser", "module", - }; - array.set(Target.browser, &listc); - array.set( - Target.bun, - &[_]string{ - "bun", - "worker", - "module", - "node", - "default", - "browser", - }, - ); - array.set( - Target.bun_macro, - &[_]string{ - "macro", - "bun", - "worker", - "module", - "node", - "default", - "browser", - }, - ); + }); + array.set(Target.bun, &[_]string{ + "bun", + "worker", + "node", + }); + array.set(Target.bun_macro, &[_]string{ + "macro", + "bun", + "worker", + "node", + }); break :brk array; }; |