We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8355f70 commit 737f6c0Copy full SHA for 737f6c0
src/targets/node/nodeSourcePathResolver.ts
@@ -38,6 +38,13 @@ export class NodeSourcePathResolver extends SourcePathResolverBase<IOptions> {
38
// replace any query string, which can be generated by webpack bundles
39
url = url.replace(/\?.+/, '');
40
41
+ // Allow debugging of externally loaded Node internals
42
+ // [ by building Node with ./configure --node-builtin-modules-path $(pwd) ]
43
+ if (url.startsWith('node:')) {
44
+ url = url.replace('node:', this.options.basePath + '/lib/');
45
+ if (!url.endsWith('.js')) url += '.js';
46
+ }
47
+
48
if (map) {
49
return this.sourceMapSourceToAbsolute(url, map);
50
}
0 commit comments