Skip to content

Commit 49cd77d

Browse files
authored
fix: leak strict mode with UMD builds (#19614)
1 parent ffb749c commit 49cd77d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/rollup/wrappers.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ ${source}`;
5050
*
5151
${license}
5252
*/
53-
54-
'use strict';
55-
5653
${source}`;
5754
},
5855

@@ -63,7 +60,7 @@ ${source}`;
6360
*
6461
${license}
6562
*/
66-
${source}`;
63+
(function(){${source}})();`;
6764
},
6865

6966
/***************** UMD_PROFILING *****************/
@@ -73,7 +70,7 @@ ${source}`;
7370
*
7471
${license}
7572
*/
76-
${source}`;
73+
(function(){${source}})();`;
7774
},
7875

7976
/***************** NODE_DEV *****************/

0 commit comments

Comments
 (0)