Skip to content
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

CLI: Issue with coffeescript --map and --out #3429

Closed
gilbertg opened this issue Mar 20, 2014 · 4 comments
Closed

CLI: Issue with coffeescript --map and --out #3429

gilbertg opened this issue Mar 20, 2014 · 4 comments
Labels

Comments

@gilbertg
Copy link

Hi, i'm using coffee-script v1.7.1 and compiling (on Windows) like this:
coffee --compile --map --output "..\" ".\"
so, i want to send the js and map files to another folder.

The result is my map files sourceRoot still references the source folder, and my debugger (Intellij IDEA) does not stop at the breakpoints.

The only way i can get this right is by compiling all to the source folder, then moving it out (which is a bit of a pain), so i get a [correct] map header like this:

{
  "version": 3,
  "file": "utils.js",
  "sourceRoot": "",
  "sources": [
    "utils.coffee"
  ],
  "names": [],
@Zearin
Copy link

Zearin commented Apr 14, 2014

👍

@GeoffreyBooth
Copy link
Collaborator

See also #3440.

@GeoffreyBooth
Copy link
Collaborator

Is this still an issue?

@GeoffreyBooth GeoffreyBooth changed the title Issue with coffeescript --map and --out CLI: Issue with coffeescript --map and --out May 6, 2017
@GeoffreyBooth
Copy link
Collaborator

This happens now:

▶ coffee --compile --map --output /tmp/test test.coffee
▶ ls /tmp/test
test.js       test.js.map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants