diff --git a/cs.js b/cs.js index 8b78320..79e2aac 100644 --- a/cs.js +++ b/cs.js @@ -277,8 +277,9 @@ define(['coffee-script'], function (CoffeeScript) { opts.sourceMap = true; opts.header = true; opts.inline = true; - opts.sourceFiles = [name + opts.literate ? '' : '.coffee']; - opts.generatedFile = name + opts.literate ? '' : '.coffee'; + opts.filename = fullName; + opts.sourceFiles = [name + (opts.literate ? '' : '.coffee')]; + opts.generatedFile = name + (opts.literate ? '' : '.coffee'); var compiled; //Do CoffeeScript transform.