diff --git a/lib/coffee-script/coffee-script.js b/lib/coffee-script/coffee-script.js index 28b855fc..4ffed345 100644 --- a/lib/coffee-script/coffee-script.js +++ b/lib/coffee-script/coffee-script.js @@ -74,7 +74,7 @@ for (i = 0, len = fragments.length; i < len; i++) { fragment = fragments[i]; if (options.sourceMap) { - if (fragment.locationData) { + if (fragment.locationData && !/^[;\s]*$/.test(fragment.code)) { map.add([fragment.locationData.first_line, fragment.locationData.first_column], [currentLine, currentColumn], { noReplace: true });