vicary
NPM imports fail on JSON require
Turns out when a Fresh island shares the same file with NPM imports, it fails like that.
It makes total sense when the cause is known, esbuild shouldn't understands require("package.json") when targeting the web.
It would definitely saves me an hour or two with a better error message.
2 replies