Skip to content

Commit

Permalink
feat: enable sourcemaps when tsm used directly;
Browse files Browse the repository at this point in the history
- Closes #32
  • Loading branch information
lukeed committed Nov 28, 2022
1 parent 83fff52 commit 2cd3dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ if (argv.includes('-v') || argv.includes('--version')) {
}

let { URL, pathToFileURL } = require('url') as typeof import('url');
argv = ['--loader', new URL('loader.mjs', pathToFileURL(__filename)).href, ...argv];
argv = ['--enable-source-maps', '--loader', new URL('loader.mjs', pathToFileURL(__filename)).href, ...argv];
require('child_process').spawn('node', argv, { stdio: 'inherit' }).on('exit', process.exit);

0 comments on commit 2cd3dd0

Please sign in to comment.