Skip to content

Commit 81e5c80

Browse files
committed
Add $$typeof inspectable exception to middleware (closes #150)
1 parent 0b1f66a commit 81e5c80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/middleware.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ export const strictProxyMiddleware = <T extends object>(envObj: T, rawEnv: unkno
55
'length',
66
'inspect',
77
'hasOwnProperty',
8-
'toJSON', // Allow JSON.stringify() on output. See #157
8+
'toJSON', // Allow JSON.stringify() on output. See #157
99
Symbol.toStringTag,
1010
Symbol.iterator,
1111

1212
// For jest
1313
'asymmetricMatch',
1414
'nodeType',
1515

16+
// For react-refresh, see #150
17+
'$$typeof',
18+
1619
// For libs that use `then` checks to see if objects are Promises (see #74):
1720
'then',
1821
// For usage with TypeScript esModuleInterop flag

0 commit comments

Comments
 (0)