-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coffee-script source maps broken when using this package #53
Comments
@vincentcr Thanks for the report! Can you provide some more details about how to reproduce the issue? I'm assuming you're talking about the stack patching coffee-script does. I gave it a quick try and it seems to work when only
|
I am speaking of a
run like so:
|
Ah, so it's about (*) There are at least two potential solutions. But the first involves reaching into |
For reference, I'm assuming the more minimal repro is the following: require('source-map-support').install()
fs = require('fs')
foo = ->
bar = -> throw new Error 'this is a demo'
bar()
try
foo( )
catch err
console.log('err before coffee-script', err.stack)
## the above log will print the correct stack
require 'coffee-script'
foo() ## will not print the correct stack Can you confirm? |
yes, indeed, the same issue does happen. |
coffeescript-generated source maps stop working the moment this package is
require
d the first time.The text was updated successfully, but these errors were encountered: