[Pkg-javascript-commits] [node-browser-pack] 108/141: Guard against malformed standalone bundle.

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:23:29 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 a9eb63f8603b6e0e627f7051554d98414b91a16f
Author: Jesse McCarthy <git_commits at jessemccarthy.net>
Date:   Tue Mar 3 09:53:11 2015 -0500

    Guard against malformed standalone bundle.
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 1814347..9d3ab70 100644
--- a/index.js
+++ b/index.js
@@ -97,8 +97,8 @@ module.exports = function (opts) {
         entries = entries.filter(function (x) { return x !== undefined });
         
         stream.push(Buffer('},{},' + JSON.stringify(entries) + ')'));
-        
-        if (opts.standalone) {
+
+        if (opts.standalone && !first) {
             stream.push(Buffer(
                 '(' + JSON.stringify(stream.standaloneModule) + ')'
                 + umd.postlude(opts.standalone)

-- 
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