Oops, I made a mistake in my initial reply; the error message mentioned is from another test with a javascript file. I can confirm your screenshots, however, actually utilizing the fetch result does not work. Calling result.text() on a JSON file results in an object, not text; calling result.text() on a javascript or text payload results in JSON parse errors. It sounds like the code implemented here is incorrectly calling JSON.parse on any import. Additionally, result.json() fails.
I've updated the repro repository with examples that actually use and log the resulting data.