fix: leak strict mode with UMD builds (#19614)
Toru Kobayashi committed
Aug 15, 2020 at 22:42 UTC
49cd77d24a5244d159be14671654da63932ea9be
1 file changed
+2
-5
scripts/rollup/wrappers.js
+2
-5
@@ -50,9 +50,6 @@ ${source}`;
50
*
51
${license}
52
*/
53
-
54
-'use strict';
55
-
53
${source}`;
54
},
55
@@ -63,7 +60,7 @@ ${source}`;
60
*
61
${license}
62
*/
66
-${source}`;
63
+(function(){${source}})();`;
64
},
65
66
/***************** UMD_PROFILING *****************/
@@ -73,7 +70,7 @@ ${source}`;
70
*
71
${license}
72
*/
76
-${source}`;
73
+(function(){${source}})();`;
74
},
75
76
/***************** NODE_DEV *****************/