Skip to content

Commit d857d9b

Browse files
committedJul 3, 2024
feat: drop 'source-map-support' injection in favor of nodejs flag
1 parent d87405a commit d857d9b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed
 

‎actions/start.action.ts

+2-12
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)