mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix coffeescript source maps.
The file paths on Windows should be URLs with proper slashes and starting with file:///
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