Skip to content

Commit

Permalink
Implement TOML & JSON support in Bun's new bundler (#2609)
Browse files Browse the repository at this point in the history
* Implement JSON & TOML support in the bundler

* Fix failing to bind namespace imports

* Support namespace exports better

---------

Co-authored-by: Jarred Sumner <[email protected]>
  • Loading branch information
2 people authored and dylan-conway committed Apr 10, 2023
1 parent a107a7c commit 7a310b4
Show file tree
Hide file tree
Showing 13 changed files with 762 additions and 330 deletions.
6 changes: 6 additions & 0 deletions src/api/schema.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/api/schema.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/api/schema.peechy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ smol Loader {
toml = 8;
wasm = 9;
napi = 10;
base64 = 11;
dataurl = 12;
}

smol FrameworkEntryPointType {
Expand Down
6 changes: 6 additions & 0 deletions src/api/schema.zig
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ pub const Api = struct {
/// napi
napi,

/// base64
base64,

/// dataurl
dataurl,

_,

pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void {
Expand Down
Loading

0 comments on commit 7a310b4

Please sign in to comment.