Skip to content

Commit 77e8bcc

Browse files
committed
Update scuttleGlobalThis config again
1 parent 9b21856 commit 77e8bcc

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/snaps-execution-environments/webpack.config.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,16 @@ const configs = ENTRY_POINTS.map(
238238
scuttleGlobalThis: {
239239
enabled: true,
240240
exceptions: [
241-
'Array',
242-
'Boolean',
243-
'Number',
241+
// Needed for all builds.
244242
'Object',
243+
'Set',
245244
'postMessage',
246-
'Promise',
247245
'Reflect',
248-
'Set',
249-
'removeEventListener',
250-
'isNaN',
251-
'isSecureContext',
252-
'ReactNativeWebView',
246+
247+
// Only needed for the React Native WebView build.
248+
// TODO: Only enable this for the React Native WebView build.
253249
'JSON',
250+
'ReactNativeWebView',
254251
'String',
255252
],
256253
},

0 commit comments

Comments
 (0)