aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-31 19:01:45 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-31 19:01:59 -0700
commit110d0752f333e4c32c9226e4a94e93f18837f9c7 (patch)
treecee0e8eb5cabcd77579d31cacdc38ec85b39af90
parente24d579a329d91350623e82b3ec5de79c7160a78 (diff)
downloadbun-110d0752f333e4c32c9226e4a94e93f18837f9c7.tar.gz
bun-110d0752f333e4c32c9226e4a94e93f18837f9c7.tar.zst
bun-110d0752f333e4c32c9226e4a94e93f18837f9c7.zip
Add `"macro"` package.json exports condition
-rw-r--r--src/options.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/options.zig b/src/options.zig
index d2752471d..a39c9fc6c 100644
--- a/src/options.zig
+++ b/src/options.zig
@@ -616,6 +616,7 @@ pub const Target = enum {
array.set(
Target.bun_macro,
&[_]string{
+ "macro",
"bun",
"worker",
"module",
@@ -624,13 +625,6 @@ pub const Target = enum {
"browser",
},
);
- // array.set(Target.bun_macro, [_]string{ "bun_macro", "browser", "default", },);
-
- // Original comment:
- // The neutral target is for people that don't want esbuild to try to
- // pick good defaults for their platform. In that case, the list of main
- // fields is empty by default. You must explicitly configure it yourself.
- // array.set(Target.neutral, &listc);
break :brk array;
};