As suggested by FlyingRaccoon, reposting my previous question as an idea so people can vote on this.
With the current version of the SDK, JavaScript can only read files in the package folder. It would be great to be able to read files in the work directory too. Allowing this would open up many possibilities for WASM modules to write a data to a file and have JavaScript consume it, without needing to send this data in tiny chunks over L-Vars.