From 469daa42e4b58f5c63a8debd76ee65b78379e1f1 Mon Sep 17 00:00:00 2001 From: Luca Moroni Date: Tue, 11 Dec 2018 14:49:40 +0100 Subject: [PATCH] Fixed error when used with code splitting feature --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dde62f2..7fc0f1d 100644 --- a/src/index.js +++ b/src/index.js @@ -142,8 +142,8 @@ export default function rebase(options = {}) { return null }, - async generateBundle({ file }) { - const outputFolder = path.dirname(file) + async generateBundle({ file, dir }) { + const outputFolder = dir || path.dirname(file) try { // Copy all assets in parallel and waiting for it to complete.