A typescript package to execute JavaScript and TypeScript code in a webassembly quickjs sandbox
When readFile is calling a file inside "src" like ```json { "src": { "textFile.txt": "Hello from the text file!", } } ``` ```js import { readFileSync, readFile, writeFileSync } from 'node:fs' async function run(){ readFile('./textFile.txt', 'utf8', (err, data) => { if (err) throw err; console.log(data); }); console.log(readFileSync('./textFile.txt')) } await run() ``` we get: ``` Hello; from; the; text; file; Hello; from; the; text; file; ``` When not in src like: ```json { "src": {}, "textFile.txt": "Hello from the text file!", } ``` We get: ``` Hello from the text file! Hello from the text file! ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by MarketingPip and has received 4 comments.