mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
SEA binaries built with "useVfs" can now load source maps from the bundled assets (or the "vfsArchive" archive) and apply them to stack traces and error output, because fs reads are routed through the virtual file system mounted by the SEA. Add two tests covering the inline-assets and zip-archive VFS paths, each asserting that findSourceMap() resolves against the mount point and that a thrown error's frame and source line are remapped to the original source. Also document how to enable and bundle source maps in a SEA. Signed-off-by: Matteo Collina <matteo.collina@gmail.com> PR-URL: https://github.com/nodejs/node/pull/67503 Reviewed-By: Philipp Dunkel <pip@pipobscure.com> Reviewed-By: James M Snell <jasnell@gmail.com>