[Pkg-javascript-commits] [node-browser-pack] 27/141: including source content
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:23:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browser-pack.
commit a899ad7b792634dbb0d9fc96d8166a3ac9c247a6
Author: Thorsten Lorenz <thlorenz at gmx.de>
Date: Mon Mar 11 08:43:40 2013 -0400
including source content
---
index.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 078255c..9c598a5 100644
--- a/index.js
+++ b/index.js
@@ -36,13 +36,15 @@ module.exports = function (opts) {
return duplexer(parser, output);
function addMappings(row) {
- generator = generator || createGenerator();
+ generator = generator || createGenerator({ sourceRoot: row.sourceRoot });
var offset = { line: lineno, column: 0 };
if (row.mappings && row.mappings.length)
generator.addMappings(row.sourceFile, row.mappings, offset);
else
generator.addGeneratedMappings(row.sourceFile, row.source, offset);
+
+ generator.addSourceContent(row.sourceFile, row.source);
}
function write (row) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git
More information about the Pkg-javascript-commits
mailing list