Merge pull request #9122 from ForNeVeR/coffee-source-maps

Fix coffeescript source maps on Windows
This commit is contained in:
Max Brunsfeld
2015-10-12 16:00:48 -07:00

View File

@@ -29,6 +29,10 @@ exports.compile = function (sourceCode, filePath) {
Error.prepareStackTrace = previousPrepareStackTrace
}
if (process.platform === 'win32') {
filePath = 'file:///' + path.resolve(filePath).replace(/\\/g, '/')
}
var output = CoffeeScript.compile(sourceCode, {
filename: filePath,
sourceFiles: [filePath],