use sourceFileName instead of sourceMapName - fixes #775
This commit is contained in:
parent
e195d6ca55
commit
1627e2f47e
@ -17,8 +17,7 @@ module.exports = function (commander, filenames, opts) {
|
||||
var dest = path.join(commander.outDir, relative);
|
||||
|
||||
var data = util.compile(src, {
|
||||
// sourceMapName is the destination relative to the source
|
||||
sourceMapName: path.relative(dest + '/..', src)
|
||||
sourceFileName: path.relative(dest + '/..', src)
|
||||
});
|
||||
|
||||
if (commander.sourceMaps) {
|
||||
|
||||
@ -21,7 +21,7 @@ exports.addSourceMappingUrl = function (code, loc) {
|
||||
};
|
||||
|
||||
exports.transform = function (filename, code, opts) {
|
||||
opts = _.extend(opts || {}, index.opts);
|
||||
opts = _.defaults(opts || {}, index.opts);
|
||||
opts.filename = filename;
|
||||
|
||||
var result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user