Skip to content

Commit 682e7dd

Browse files
Merge pull request #2630 from micalevisk/fix-issue-2629
feat: replace 'source-map-support' with nodejs native source mapping binding
2 parents d87405a + b5dba00 commit 682e7dd

File tree

3 files changed

+321
-68
lines changed

3 files changed

+321
-68
lines changed

actions/start.action.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,21 +175,11 @@ export class StartAction extends BuildAction {
175175
typeof debug === 'string' ? `--inspect=${debug}` : '--inspect';
176176
processArgs.unshift(inspectFlag);
177177
}
178-
const sourceMapsRegisterPath = this.getSourceMapSupportPkg();
179-
if (sourceMapsRegisterPath !== undefined) {
180-
processArgs.unshift(`-r "${sourceMapsRegisterPath}"`);
181-
}
178+
processArgs.unshift('--enable-source-maps');
179+
182180
return spawn(binaryToRun, processArgs, {
183181
stdio: 'inherit',
184182
shell: true,
185183
});
186184
}
187-
188-
private getSourceMapSupportPkg() {
189-
try {
190-
return require.resolve('source-map-support/register');
191-
} catch {
192-
return undefined;
193-
}
194-
}
195185
}

0 commit comments

Comments
 (0)