From 223cddc55ee86289b8d9367e9144e36e6e0acfb1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 22 Oct 2015 17:49:49 -0400 Subject: [PATCH] default to options.external = [] --- src/Bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle.js b/src/Bundle.js index 037fe58..43e9242 100644 --- a/src/Bundle.js +++ b/src/Bundle.js @@ -47,7 +47,7 @@ export default class Bundle { this.assumedGlobals = blank(); - this.external = options.external; + this.external = options.external || []; this.onwarn = options.onwarn || onwarn; // TODO strictly speaking, this only applies with non-ES6, non-default-only bundles