From ba07e07b6ad125afd9dfee13f0371bd37dfa4792 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Sat, 15 Aug 2020 02:24:05 +0900 Subject: [PATCH] fix: leak strict mode with UMD builds --- scripts/rollup/wrappers.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/rollup/wrappers.js b/scripts/rollup/wrappers.js index 7b36b7388d1..18fedccf491 100644 --- a/scripts/rollup/wrappers.js +++ b/scripts/rollup/wrappers.js @@ -50,9 +50,6 @@ ${source}`; * ${license} */ - -'use strict'; - ${source}`; }, @@ -63,7 +60,7 @@ ${source}`; * ${license} */ -${source}`; +(function(){${source}})();`; }, /***************** UMD_PROFILING *****************/ @@ -73,7 +70,7 @@ ${source}`; * ${license} */ -${source}`; +(function(){${source}})();`; }, /***************** NODE_DEV *****************/