From 529160479e1a594bd8ac3089379e2f6fd7159d22 Mon Sep 17 00:00:00 2001 From: Victor Ceban Date: Thu, 6 Oct 2016 16:11:07 +0300 Subject: [PATCH] ES5 friendlyness increased --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5573c1c..63b177f 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,8 @@ const path = require('path'); const fs = require('fs'); const archiver = require('archiver'); -function WebpackArchivePlugin(options = {}) { +function WebpackArchivePlugin(options) { + options = options || {}; if(typeof options === 'string') { this.options = {output: options}; } else {