function end () { if (first) stream.push(Buffer.from(prelude + '({', 'utf8')); entries = entries.filter(function (x) { return x !== undefined }); stream.push( Buffer.from('},{},' + JSON.stringify(entries) + ')', 'utf8') ); if (opts.standalone && !first) { stream.push(Buffer.from( '(' + JSON.stringify(stream.standaloneModule) + ')' + umd.postlude(opts.standalone), 'utf8' )); } if (sourcemap) { var comment = sourcemap.comment(); if (opts.sourceMapPrefix) { comment = comment.replace( /^\/\/#/, function () { return opts.sourceMapPrefix } ) } stream.push(Buffer.from('\n' + comment + '\n', 'utf8')); } if (!sourcemap && !opts.standalone) { stream.push(Buffer.from(';\n', 'utf8')); } stream.push(null); }
function end () { if (first) writePrelude.call(this); if (standalone) { this.queue('\n(' + mainModule + ')' + umd.postlude(standalone)); } this.queue('\n;'); this.queue(null); }
function end () { if (first) writePrelude(); if (standalone) { output.queue('(' + mainModule + ')' + umd.postlude(standalone)); } this.queue('\n;'); this.queue(null); }
function end (callback) { if (first) writePrelude.call(this); if (opts.standalone) { this.push( '\n(' + JSON.stringify(mainModule) + ')' + umd.postlude(opts.standalone) ); } if (opts.debug) this.push('\n'); callback(); }
function end () { if (first) writePrelude.call(this); if (opts.standalone) { this.queue( '\n(' + JSON.stringify(mainModule) + ')' + umd.postlude(opts.standalone) ); } if (opts.debug) this.queue('\n'); this.queue(null); }
function end () { if (first) writePrelude.call(this); if (opts.standalone) { this.push( '\n(' + JSON.stringify(self._mainModule) + ')' + umd.postlude(opts.standalone) ); } this.push(';\n'); this.push(null); }