From aba7a704a6b5f571f1feea20e0bd474aed492725 Mon Sep 17 00:00:00 2001 From: DengYun Date: Mon, 31 Oct 2016 19:12:23 +0800 Subject: [PATCH] bugfix for Node 6.x --- local-cli/src/bundle.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local-cli/src/bundle.js b/local-cli/src/bundle.js index c5ad3b8..b7dac3c 100644 --- a/local-cli/src/bundle.js +++ b/local-cli/src/bundle.js @@ -99,6 +99,9 @@ function readEntire(entry, zipFile) { }, end() { resolve(Buffer.concat(buffers)); + }, + prependListener() { + }, on() { }, @@ -155,7 +158,7 @@ async function diffFromPPK(origin, next, output) { function addEntry(fn) { //console.log(fn); - if (addedEntry[fn]) { + if (!fn || addedEntry[fn]) { return; } const base = basename(fn);