From 49cd77d24a5244d159be14671654da63932ea9be Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Sat, 15 Aug 2020 22:42:49 +0900 Subject: [PATCH] fix: leak strict mode with UMD builds (#19614) --- 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 7b36b7388d1da..18fedccf4914a 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 *****************/