在coffee-script.js中的几个源文件的源地图

时间:2015-10-06 21:49:26

标签: javascript coffeescript

当我尝试使用多个.coffee文件时

<script data-src="js/file1.coffee"      type="text/coffeescript"></script>
<script data-src="js/file2.coffee"      type="text/coffeescript" ></script>

<script src="lib/coffee-script.js"></script>

第一个脚本的内容是:

console.log 'file1'

第2个脚本的内容是:

console.log 'file1'

我只获得第一个文件的源地图。 Chrome控制台中的所有运行时错误和输出都会引用一个未显示的最后一个字符串file1.coffee

控制台输出是:

file1        file1.coffee:1 
file2        file1.coffee:1 

0 个答案:

没有答案