diff options
| author | 2023-04-10 06:35:41 -0700 | |
|---|---|---|
| committer | 2023-04-10 06:35:41 -0700 | |
| commit | 373248ce9c2915494b6dac5da958a39e236a5c10 (patch) | |
| tree | b66908e9775563518b536293da7fd7d80c0f56ae /src/api/schema.js | |
| parent | 5c37d0f2a57af40352ef8a30f941551c24fe06eb (diff) | |
| download | bun-373248ce9c2915494b6dac5da958a39e236a5c10.tar.gz bun-373248ce9c2915494b6dac5da958a39e236a5c10.tar.zst bun-373248ce9c2915494b6dac5da958a39e236a5c10.zip | |
Implement TOML & JSON support in Bun's new bundler (#2609)
* Implement JSON & TOML support in the bundler
* Fix failing to bind namespace imports
* Support namespace exports better
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to '')
| -rw-r--r-- | src/api/schema.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index 16c2ca119..bc8a26215 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -9,6 +9,8 @@ const Loader = { "8": 8, "9": 9, "10": 10, + "11": 11, + "12": 12, "jsx": 1, "js": 2, "ts": 3, @@ -19,6 +21,8 @@ const Loader = { "toml": 8, "wasm": 9, "napi": 10, + "base64": 11, + "dataurl": 12, }; const LoaderKeys = { "1": "jsx", @@ -31,6 +35,8 @@ const LoaderKeys = { "8": "toml", "9": "wasm", "10": "napi", + "11": "base64", + "12": "dataurl", "jsx": "jsx", "js": "js", "ts": "ts", @@ -41,6 +47,8 @@ const LoaderKeys = { "toml": "toml", "wasm": "wasm", "napi": "napi", + "base64": "base64", + "dataurl": "dataurl", }; const FrameworkEntryPointType = { "1": 1, |
