[Pkg-javascript-commits] [node-browser-pack] 33/141: 80 cols
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 99f9d23f274a246caac1f66f0e301c5acd2067af
Author: James Halliday <mail at substack.net>
Date: Sat Mar 16 20:37:38 2013 -0700
80 cols
---
index.js | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/index.js b/index.js
index 2a01860..51a0a57 100644
--- a/index.js
+++ b/index.js
@@ -40,15 +40,19 @@ module.exports = function (opts) {
if (row.sourceFile) {
sourcemap = sourcemap || combineSourceMap.create();
- sourcemap.addFile({ sourceFile: row.sourceFile, source: row.source }, { line: lineno });
+ sourcemap.addFile(
+ { sourceFile: row.sourceFile, source: row.source },
+ { line: lineno }
+ );
}
-
+
var wrappedSource = [
(first ? '' : ','),
JSON.stringify(row.id),
':[',
- 'function(require,module,exports){\n' + combineSourceMap.removeComments(row.source) + '\n}',
- ',',
+ 'function(require,module,exports){\n',
+ combineSourceMap.removeComments(row.source),
+ '\n},',
JSON.stringify(row.deps || {}),
']'
].join('');
--
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