diff --git a/lib/coffee-script/coffee-script.js b/lib/coffee-script/coffee-script.js index 3b397f7c46..78e34cd991 100644 --- a/lib/coffee-script/coffee-script.js +++ b/lib/coffee-script/coffee-script.js @@ -370,7 +370,8 @@ } else if (sources[filename] != null) { answer = compile(sources[filename], { filename: filename, - sourceMap: true + sourceMap: true, + literate: helpers.isLiterate(filename) }); return answer.sourceMap; } else { diff --git a/src/coffee-script.coffee b/src/coffee-script.coffee index cca763e590..a2329f6e8c 100644 --- a/src/coffee-script.coffee +++ b/src/coffee-script.coffee @@ -366,6 +366,7 @@ getSourceMap = (filename) -> answer = compile sources[filename], filename: filename sourceMap: yes + literate: helpers.isLiterate filename answer.sourceMap else null