-
Notifications
You must be signed in to change notification settings - Fork 225
Closed
Description
I'm following the basic demo here:
https://github.com/evanw/node-source-map-support#basic-demo
npm install source-map-support
echo 'throw new Error("test"); // This is the original code' > original.js
echo 'require("source-map-support").install();
throw new Error("test"); // This is the compiled code
// The next line defines the sourceMapping.
//# sourceMappingURL=compiled.js.map' > compiled.js
echo '{
"version": 3,
"file": "compiled.js",
"sources": ["original.js"],
"names": [],
"mappings": ";;;AAAA,MAAM,IAAI"
}' > compiled.js.map
node compiled.js
And I get:
.../compiled.js:3
throw new Error(test); // This is the compiled code
^
Error: test
nnnikolay, exebook and jeremytm
Metadata
Metadata
Assignees
Labels
No labels