Created
March 9, 2022 09:29
-
-
Save tonmanna/1fb7e2b1b7c40f5b37610fff00b799be to your computer and use it in GitHub Desktop.
source-map not working nrwl nx node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getExecArgv(options: NodeExecutorOptions) { | |
const args = [ | |
'-r', | |
require.resolve('source-map-support/register'), | |
...options.runtimeArgs, | |
]; | |
if (options.inspect === true) { | |
options.inspect = InspectType.Inspect; | |
} | |
if (options.inspect) { | |
args.push(`--${options.inspect}=${options.host}:${options.port}`); | |
} | |
return args; | |
} | |
//Change it to | |
function getExecArgv(options: NodeExecutorOptions) { | |
const args = [ | |
'-r', | |
'source-map-support/register', | |
...options.runtimeArgs, | |
]; | |
if (options.inspect === true) { | |
options.inspect = InspectType.Inspect; | |
} | |
if (options.inspect) { | |
args.push(`--${options.inspect}=${options.host}:${options.port}`); | |
} | |
return args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/nrwl/nx/blame/master/packages/node/src/executors/node/node.impl.ts