From d857d9b692128725a0170507688454767337bcab Mon Sep 17 00:00:00 2001 From: "Micael Levi L. Cavalcante" Date: Wed, 3 Jul 2024 18:14:41 -0400 Subject: [PATCH] feat: drop 'source-map-support' injection in favor of nodejs flag --- actions/start.action.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/actions/start.action.ts b/actions/start.action.ts index 4b628ad93..1c64e6a3e 100644 --- a/actions/start.action.ts +++ b/actions/start.action.ts @@ -175,21 +175,11 @@ export class StartAction extends BuildAction { typeof debug === 'string' ? `--inspect=${debug}` : '--inspect'; processArgs.unshift(inspectFlag); } - const sourceMapsRegisterPath = this.getSourceMapSupportPkg(); - if (sourceMapsRegisterPath !== undefined) { - processArgs.unshift(`-r "${sourceMapsRegisterPath}"`); - } + processArgs.unshift('--enable-source-maps'); + return spawn(binaryToRun, processArgs, { stdio: 'inherit', shell: true, }); } - - private getSourceMapSupportPkg() { - try { - return require.resolve('source-map-support/register'); - } catch { - return undefined; - } - } }