[Pkg-javascript-commits] [node-browser-pack] 70/141: not using sourcemaps of deduped files
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:23:25 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 867b8d593a75b622f4055f6c09c5488b99ac780e
Author: Thorsten Lorenz <thlorenz at gmx.de>
Date: Wed Oct 30 17:26:12 2013 -0400
not using sourcemaps of deduped files
- rows marked as deduped by browserify contain a redirect to the actual code
- this change prevents the actual code sourcemaps from being overwritten with the redirect
- the seenSourceFiles feature was removed since it didn't fully fix the
problem
---
index.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 68bcdee..f58271a 100644
--- a/index.js
+++ b/index.js
@@ -31,15 +31,13 @@ module.exports = function (opts) {
var lineno = 1 + newlinesIn(prelude);
var sourcemap;
- var seenSourceFiles = {};
return stream;
function write (row) {
if (first) stream.queue(prelude + '({');
- if (row.sourceFile && !seenSourceFiles[row.sourceFile]) {
- seenSourceFiles[row.sourceFile] = true;
+ if (row.sourceFile && !row.nomap) {
sourcemap = sourcemap || combineSourceMap.create();
sourcemap.addFile(
{ sourceFile: row.sourceFile, source: row.source },
--
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