.json5 imports.
config.json5
Import the file like any other source file.
You can also use named imports to destructure top-level properties:
For parsing JSON5 strings at runtime, use
Bun.JSON5.parse():
See Docs > API > JSON5 for complete documentation on JSON5 support in Bun.