diff options
author | 2022-05-19 05:37:18 -0700 | |
---|---|---|
committer | 2022-05-19 05:37:18 -0700 | |
commit | d4767ca763f5a484cc5ec005f0d81d02fdd34390 (patch) | |
tree | c8aa2df29d6fe425672496aba77621941360f1e8 /src/api | |
parent | 07e695da031ae9638684e6f1bd2e4e29ca14d098 (diff) | |
download | bun-d4767ca763f5a484cc5ec005f0d81d02fdd34390.tar.gz bun-d4767ca763f5a484cc5ec005f0d81d02fdd34390.tar.zst bun-d4767ca763f5a484cc5ec005f0d81d02fdd34390.zip |
[wip] Solid.js support for Bun!
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/schema.d.ts | 3 | ||||
-rw-r--r-- | src/api/schema.js | 4 | ||||
-rw-r--r-- | src/api/schema.peechy | 1 | ||||
-rw-r--r-- | src/api/schema.zig | 3 |
4 files changed, 11 insertions, 0 deletions
diff --git a/src/api/schema.d.ts b/src/api/schema.d.ts index f2f6d5b8f..d9713fdd2 100644 --- a/src/api/schema.d.ts +++ b/src/api/schema.d.ts @@ -158,12 +158,15 @@ export const CSSInJSBehaviorKeys: { export const enum JSXRuntime { automatic = 1, classic = 2, + solid = 3, } export const JSXRuntimeKeys: { 1: "automatic"; automatic: "automatic"; 2: "classic"; classic: "classic"; + 3: "solid"; + solid: "solid"; }; export const enum ScanDependencyMode { app = 1, diff --git a/src/api/schema.js b/src/api/schema.js index 1db65f2ca..ac28f56ab 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -581,14 +581,18 @@ const CSSInJSBehaviorKeys = { const JSXRuntime = { 1: 1, 2: 2, + 3: 3, automatic: 1, classic: 2, + solid: 3, }; const JSXRuntimeKeys = { 1: "automatic", 2: "classic", + 3: "solid", automatic: "automatic", classic: "classic", + solid: "solid", }; function decodeJSX(bb) { diff --git a/src/api/schema.peechy b/src/api/schema.peechy index f9188987a..225fcaac3 100644 --- a/src/api/schema.peechy +++ b/src/api/schema.peechy @@ -124,6 +124,7 @@ smol CSSInJSBehavior { smol JSXRuntime { automatic = 1; classic = 2; + solid = 3; } struct JSX { diff --git a/src/api/schema.zig b/src/api/schema.zig index f6837c58d..e16c4ed79 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -842,6 +842,9 @@ pub const Api = struct { /// classic classic, + /// solid + solid, + _, pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { |