mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Merge pull request #9122 from ForNeVeR/coffee-source-maps
Fix coffeescript source maps on Windows
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user