We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8bdc1 commit 1b65674Copy full SHA for 1b65674
packages/node_modules/overmind/src/utils.ts
@@ -30,6 +30,10 @@ export const makeStringifySafeMutations = (mutations: IMutation[]) => {
30
export function deepCopy(obj) {
31
if (isPlainObject(obj)) {
32
return Object.keys(obj).reduce((aggr: any, key) => {
33
+ if (key === '__esModule') {
34
+ return aggr
35
+ }
36
+
37
const originalDescriptor = Object.getOwnPropertyDescriptor(obj, key)
38
const isAGetter = originalDescriptor && 'get' in originalDescriptor
39
const value = obj[key]
0 commit comments