Skip to content

Commit b1416b8

Browse files
mcollinajasnell
andcommitted
Update single-executable-applications.md
Co-authored-by: James M Snell <[email protected]>
1 parent 4726b7f commit b1416b8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

doc/api/single-executable-applications.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ const vfs = sea.getVfs();
194194

195195
if (vfs) {
196196
// Now you can use standard fs APIs to read bundled assets
197-
const config = JSON.parse(fs.readFileSync('/sea/config.json', 'utf8'));
197+
const rawConfig = fs.readFileSync('/sea/config.json', 'utf8');
198198
const data = fs.readFileSync('/sea/data/file.txt');
199+
200+
cons config = JSON.parse(rawconfig);
199201

200202
// Directory operations work too
201203
const files = fs.readdirSync('/sea/assets');

0 commit comments

Comments
 (0)