From 675c3f6a0a242a75358fbb9bebefd3b03446fcb6 Mon Sep 17 00:00:00 2001 From: Feiyang1 Date: Fri, 21 Sep 2018 10:35:28 -0700 Subject: [PATCH] wrap component with try catch outside of iife for old browser compatibility --- packages/firebase/rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/firebase/rollup.config.js b/packages/firebase/rollup.config.js index 9246d2ca7a5..9df36db94e4 100644 --- a/packages/firebase/rollup.config.js +++ b/packages/firebase/rollup.config.js @@ -117,8 +117,8 @@ const componentBuilds = components globals: { '@firebase/app': GLOBAL_NAME }, - intro: `try {`, - outro: `} catch(err) { + banner: `try {`, + footer: `} catch(err) { console.error(err); throw new Error( 'Cannot instantiate firebase-${component} - ' +