node-source-map-support
node-source-map-support copied to clipboard
Adds source map support to node.js (for stack traces)
Below is the source file I am using: ```js require('source-map-support').install(); throw new Error('error on line two'); ``` The following command will generate the __correct__ output: ```sh node dist/bundle.js ``` output:...
First of all thank you for providing this project! It's a great help for my current project. Regarding this issue: I would like to request that a special case be...
When I run my script w/out `source-map-support` in recent versions of node, internal code is greyed out:  When I run with `source-map-support` I get a nice trace showing my...
I do get an 'Uncaught ReferenceError: process is not defined' error in Chrome since version 0.5.15. It seems to be caused by issue #255, commit a64d497 line 362 in source-map-support.js...
```typescript import {transpile} from 'typescript'; const jsCode = transpile(, {inlineSourceMap: true}, ); const sandbox = {exports: {}}; runInContext(jsCode , createContext(sandbox), {filename: }); ``` How to use with vm.runInContext ()?
This files are generated by prepublish script
https://github.com/evanw/node-source-map-support/blob/master/source-map-support.js#L540-L556 This has downstream effects, especially for testing suites. For reference: https://github.com/trufflesuite/ganache-cli/issues/658 Can you make this opt-in instead of opt-out?
- `fs.existsSync` preceding a `fs.readFileSync` is 2 sync io operations that can/should be 1. - in browser, makes sense to ignore all errors for xhr reqs - but, in node...
Getting below error while compiling ... `WARNING in ./~/source-map-support/source-map-support.js Module not found: Error: Can't resolve 'module' in 'D:\WebStormWork\myapp\node_modules\source-map-support' @ ./~/source-map-support/source-map-support.js 474:15-32 @ ./~/bunyan/lib/bunyan.js @ ./~/ldapjs/lib/index.js @ multi webpack-dev-server/client webpack: Compiled...
https://github.com/evanw/node-source-map-support/blob/208d1df2865143dd74ae83f42db2fdab584dc0bd/test.js#L594 Isn't it conflict to the source map spec?