node/lib/internal/modules
Chengzhong Wu b11ee4cad3
lib: allow skipping source maps in node_modules
Files in `node_modules` are not authored by the user directly and the
original sources are less relevant to the user.

Skipping source maps in `node_modules` improves the general
performance. Add `module.setSourceMapsSupport(enabled, options)` to
skip source maps in `node_modules` if it is needed. This moves
all source maps related API to `node:module` and this a step to
promote the source maps API to stable.

PR-URL: https://github.com/nodejs/node/pull/56639
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2025-01-23 22:44:10 +00:00
..
cjs module: fixing url change in load sync hook chain 2025-01-22 10:25:00 -08:00
esm lib: allow skipping source maps in node_modules 2025-01-23 22:44:10 +00:00
customization_hooks.js doc: correct customization hook types & clarify descriptions 2025-01-14 14:24:41 +00:00
helpers.js module: implement module.registerHooks() 2024-12-09 23:27:08 +00:00
package_json_reader.js module: fix async resolution error within the sync findPackageJSON 2024-12-31 12:07:23 +00:00
run_main.js module: remove --experimental-default-type 2024-12-02 22:43:55 +00:00
typescript.js module: use more defensive code when handling SWC errors 2025-01-23 15:17:31 +00:00