You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paperdave
changed the title
[Loaders] Bun does not respect an import with { type: "json" }
[Loaders] Runtime does not respect import ... with { type: "json" }Jul 19, 2024
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 unknown
What steps can reproduce the bug?
Use a test json file with any extension other than "json".
For example, "data.any":
Then, write
index.ts
:What is the expected behavior?
The console should show
What do you see instead?
The console shows
Additional information
It works for other types, such as "toml", "text" or "file". Only "json" (to my knowledge) is affected.
The text was updated successfully, but these errors were encountered: