import data from './file.json` with { type: 'json' };
Just curious. Is there any plan?
I’m currently running my build script with Node.js v22 and managing configurations in a JSON file, but it’s a bit inconvenient not to have direct access to configurations in Edge Functions.
Anyway, Edge Function can access .js javascript files. I can use it even now by adding export default in front of the JSON file and changing its extension. So why not just import plain JSON files, like Node.js and recent browsers do? I just assumed, rationally, that Edge Functions would likely support JSON modules at some point, so I was curious about the plan.