Code Monkey home page Code Monkey logo

Comments (2)

evanw avatar evanw commented on July 26, 2024

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.

michaelficarra avatar michaelficarra commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.