You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been running into issues related to node-source-map-support#34. source-map-support also monkey-patches Error.prepareStackTrace, and it would be great to have a CoffeeScript option to disable its patching.
In this particular case, I am using connect-assets to autocompile .coffee files for an express app. Although connect-assets's dep minceronly uses the coffee.compile() fn, the require("coffee-script") call still patches Error.prepareStackTrace.
I had to step through a lot of packages to find which package loaded in a way that was clobbering my prepareStackTrace.
I also recently solved this issue for node-vault, so it's not an isolated problem. I don't think it's clear enough to developers that require("coffee-script") will have this effect, I think having the option to disable it in the docs would help.
Thanks for your work, CoffeeScript is awesome!
The text was updated successfully, but these errors were encountered:
@doublerebel per #4428 the patched version of Error.prepareStackTrace now only returns a modified stack trace for compiled CoffeeScript code, otherwise passing through the original runtime stack trace. Does this solve your issue?
We’re not looking to add any additional options to the CoffeeScript compiler.
Hello,
I've been running into issues related to node-source-map-support#34. source-map-support also monkey-patches
Error.prepareStackTrace
, and it would be great to have a CoffeeScript option to disable its patching.In this particular case, I am using connect-assets to autocompile .coffee files for an express app. Although connect-assets's dep mincer only uses the
coffee.compile()
fn, therequire("coffee-script")
call still patchesError.prepareStackTrace
.I had to step through a lot of packages to find which package loaded in a way that was clobbering my prepareStackTrace.
I also recently solved this issue for node-vault, so it's not an isolated problem. I don't think it's clear enough to developers that
require("coffee-script")
will have this effect, I think having the option to disable it in the docs would help.Thanks for your work, CoffeeScript is awesome!
The text was updated successfully, but these errors were encountered: