-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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, 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!