Skip to content

Commit

Permalink
Enable source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 10, 2023
1 parent e342216 commit df90915
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/common/scripts/my-ts-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ function main() {
esbuildProcess.on("close", (code) => {
if (code === 0) {
// Execute the bundled file with Node, passing any additional arguments
const nodeProcess = runCommand(process.execPath, [outFile, ...childArgs]);
const nodeProcess = runCommand(process.execPath, [
"--enable-source-maps",
outFile,
...childArgs,
]);
nodeProcess.on("close", (code) => process.exit(code ?? undefined));
} else {
console.error(`esbuild failed with code ${code}`);
Expand Down

0 comments on commit df90915

Please sign in to comment.