Skip to content

Commit

Permalink
getSourceMap needs to pass literate flag to compile() (jashkenas#4435)
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s authored and GeoffreyBooth committed Feb 5, 2017
1 parent 87e537c commit 3d0d04e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/coffee-script/coffee-script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/coffee-script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ getSourceMap = (filename) ->
answer = compile sources[filename],
filename: filename
sourceMap: yes
literate: helpers.isLiterate filename
answer.sourceMap
else
null
Expand Down

0 comments on commit 3d0d04e

Please sign in to comment.