Comments (2)
That's a good point, and is something I should mention in the readme. I was using CoffeeScriptRedux to demonstrate this library and not to demonstrate an actual use case. You bring up a good use case for this library in run.coffee from the CoffeeScriptRedux source:
# NodeJS / V8 have no support for transforming positions in stack traces using
# sourceMap, so we must monkey-patch Error to display CoffeeScript source
# positions.
# Ideally, this would happen in a way that is scalable to multiple compile-to-
# JS languages trying to do the same thing in the same NodeJS process. We can
# implement it as if there were an API, and then patch in support for that
# API. The following maybe should be in its own npm module that multiple
# compilers can include.
This library allows multiple compile-to-JS languages with source maps to coexist in the same node process. I'll admit that it's probably not that strong a use case but it's nice to have when you need it :)
from node-source-map-support.
I can't take credit for that code, that was a contribution from @kevinmehall, who I'm sure would be really interested in this project.
Thanks for mentioning --eval
in the readme.
This library allows multiple compile-to-JS languages with source maps to coexist in the same node process.
It'd probably also be good to explicitly mention this. I'd say that's a noteworthy benefit.
from node-source-map-support.
Related Issues (20)
- lib throws error with "Cannot read property 'isNative' of undefined" HOT 2
- Problems with Node 12 on Windows
- Removes error code from node errors HOT 2
- [meta] are tests running on CI? HOT 1
- Format the output so it can be clicked HOT 1
- decodeURI for chinese filename
- Using source map support removes details from some errors HOT 1
- TypeError: Cannot read property 'String' of undefined HOT 1
- Cannot find module when `import "source-map-support/register"` HOT 2
- Leaking event hooks which prevents process from exiting
- Error still show compiled code
- Error still show compiled code
- Source-map needs to be updated to 0.8.0-beta.0 HOT 1
- RangeError Maximum call stack size exceeded when testing Vue project HOT 1
- `lastIndexOf` in `sourcemap-register.js` causes Github to flag `Incorrect suffix check` HOT 4
- document that this package is no longer needed as of node 12.12.0
- WASM traces do not correspond to expected offsets HOT 2
- Provide esm version HOT 2
- Dependency of some other major open source projects
- Is there Micro Frontend support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-source-map-support.