aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-19 23:07:03 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-19 23:07:03 -0800
commita09b99565138bb4bc73a5328397428fb5025817b (patch)
tree3412ae330b4a6078173d0048665b9d547b3d718b /src/api
parent4098484ff5d1c66a5f146e773a9be25cbcd2a1f4 (diff)
downloadbun-a09b99565138bb4bc73a5328397428fb5025817b.tar.gz
bun-a09b99565138bb4bc73a5328397428fb5025817b.tar.zst
bun-a09b99565138bb4bc73a5328397428fb5025817b.zip
Bun.Transpiler – API for scanning imports/exports of JSX/TSX/TS/JS files
Diffstat (limited to 'src/api')
-rw-r--r--src/api/schema.d.ts3
-rw-r--r--src/api/schema.js4
-rw-r--r--src/api/schema.peechy1
-rw-r--r--src/api/schema.zig3
4 files changed, 11 insertions, 0 deletions
diff --git a/src/api/schema.d.ts b/src/api/schema.d.ts
index 273f8d9d3..490a74421 100644
--- a/src/api/schema.d.ts
+++ b/src/api/schema.d.ts
@@ -120,6 +120,7 @@ export enum Platform {
browser = 1,
node = 2,
bun = 3,
+ bun_macro = 4,
}
export const PlatformKeys = {
1: "browser",
@@ -128,6 +129,8 @@ export const PlatformKeys = {
node: "node",
3: "bun",
bun: "bun",
+ 4: "bun_macro",
+ bun_macro: "bun_macro",
};
export enum CSSInJSBehavior {
facade = 1,
diff --git a/src/api/schema.js b/src/api/schema.js
index 8b2043e9c..8339484da 100644
--- a/src/api/schema.js
+++ b/src/api/schema.js
@@ -534,17 +534,21 @@ const Platform = {
1: 1,
2: 2,
3: 3,
+ 4: 4,
browser: 1,
node: 2,
bun: 3,
+ bun_macro: 4,
};
const PlatformKeys = {
1: "browser",
2: "node",
3: "bun",
+ 4: "bun_macro",
browser: "browser",
node: "node",
bun: "bun",
+ bun_macro: "bun_macro",
};
const CSSInJSBehavior = {
1: 1,
diff --git a/src/api/schema.peechy b/src/api/schema.peechy
index 7c5b482a2..cd5134299 100644
--- a/src/api/schema.peechy
+++ b/src/api/schema.peechy
@@ -109,6 +109,7 @@ smol Platform {
browser = 1;
node = 2;
bun = 3;
+ bun_macro = 4;
}
smol CSSInJSBehavior {
diff --git a/src/api/schema.zig b/src/api/schema.zig
index 8a850c8f1..4fe8d8acb 100644
--- a/src/api/schema.zig
+++ b/src/api/schema.zig
@@ -797,6 +797,9 @@ pub const Api = struct {
/// bun
bun,
+ /// bun_macro
+ bun_macro,
+
_,
pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void {