Skip to content

coffee-script.register() has no support for sourcemaps #4214

@gaurav21r

Description

@gaurav21r

I have tests written in js (mocha) where I am directly requireing .coffee files. And using node-inspector to debug.

Using require('coffee-script').register() I am not able to generate sourcemaps.

I found a solution here but I don't think it works. Although I just did a bit of surface level digging over the annotated source and seems that sourcemaps are getting generated when using the coffee compiler. Could it be an easy fix just to "turn on" sourcemaps for register() as well?

Without sourcemaps debugging nodejs scripts in coffee are nothing short of a nightmare :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions