Rhino version does not create source map file
Open
Nobody has claimed this yet.
bug
medium priority
- Dominant language
- JavaScript
- Stars
- 17k
- Forks
- 3.4k
- Avg merge
- 7h 42m
- Merged PRs (30d)
- 26
Description
This is related to #2043. I used command:
java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less less.css
This is how less.less looks like:
.test {
demo: value;
}
Source map file was not created.
Note 1: The --source-map option is not ignored by rhino, because following:
java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less
returns expected error:
output: undefined
the sourcemap option only has an optional filename if the css filename is given
Note 2: the same file compiled under node.js generated source map file:
{"version":3,"file":"less.css","sources":["less.less"],"names":[],"mappings":"AAAA;EACE,WAAA"}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reported Rhino command with less-rhino-1.7.0.js, lessc-rhino-1.7.0.js, and less.less, then compare it with the Node.js result. Trace the Rhino command-line handling of --source-map and less.css. Done means the Rhino invocation creates a source map for less.less and less.css like the Node.js invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100