Skip to content

Commit e581f7d

Browse files
Merge pull request #3051 from CaseyLeask/source-map-syntax-update
Updated the Source Maps syntax
2 parents 0c9f0fd + 34c1704 commit e581f7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/browser.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if btoa? and JSON? and unescape? and encodeURIComponent?
2929
options.sourceMap = true
3030
options.inline = true
3131
{js, v3SourceMap} = CoffeeScript.compile code, options
32-
"#{js}\n//@ sourceMappingURL=data:application/json;base64,#{btoa unescape encodeURIComponent v3SourceMap}\n//@ sourceURL=coffeescript"
32+
"#{js}\n//# sourceMappingURL=data:application/json;base64,#{btoa unescape encodeURIComponent v3SourceMap}\n//# sourceURL=coffeescript"
3333

3434
# Load a remote script from the current domain via XHR.
3535
CoffeeScript.load = (url, callback, options = {}) ->

src/command.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ writeJs = (base, sourcePath, js, jsPath, generatedSourceMap = null) ->
273273
compile = ->
274274
if opts.compile
275275
js = ' ' if js.length <= 0
276-
if generatedSourceMap then js = "#{js}\n/*\n//@ sourceMappingURL=#{helpers.baseFileName sourceMapPath, no, useWinPathSep}\n*/\n"
276+
if generatedSourceMap then js = "#{js}\n//# sourceMappingURL=#{helpers.baseFileName sourceMapPath, no, useWinPathSep}\n"
277277
fs.writeFile jsPath, js, (err) ->
278278
if err
279279
printLine err.message

0 commit comments

Comments
 (0)