From b6d89d900192299b082bbb9e53c4a9bd7fa675fc Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 22 Oct 2018 14:25:18 -0400 Subject: [PATCH] hotfix: fix empty assets array --- lib/core/engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/engine.js b/lib/core/engine.js index 561fbbbb9..af0cbd65b 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -168,7 +168,7 @@ class Engine { }); }; const cargo = async.cargo((tasks, callback) => { - const modifiedAssets = tasks.map(task => task.modifiedAsset); + const modifiedAssets = tasks.map(task => task.modifiedAsset).filter(asset => asset); // filter null elements generateCode(modifiedAssets); self.events.once('outputDone', callback); });