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
Running this from the command line I can pass the -m flag and it will produce a source map. e.g. cjsx -cm will produce both the .js file and the source map file.
However; running this in a node (in fact Jest) context I want to do:
Running this from the command line I can pass the -m flag and it will produce a source map. e.g. cjsx -cm will produce both the .js file and the source map file.
However; running this in a node (in fact Jest) context I want to do:
const coffeereact = require('coffee-react');
var compiled = coffeereact.compile(src, {bare: true, map: true});
And have complied have both the compiled JS code and the source map. I want to do this so I can write the source map to the file system for later use.
At the moment putting the map: true option in this context seems to have no effect.
I'm not sure if this is possible? Or if not - perhaps this is a feature request?
The text was updated successfully, but these errors were encountered: