Skip to content

Commit 1b65674

Browse files
authored
Ignore __esModule field
1 parent 0f8bdc1 commit 1b65674

File tree

1 file changed

+4
-0
lines changed
  • packages/node_modules/overmind/src

1 file changed

+4
-0
lines changed

packages/node_modules/overmind/src/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export const makeStringifySafeMutations = (mutations: IMutation[]) => {
3030
export function deepCopy(obj) {
3131
if (isPlainObject(obj)) {
3232
return Object.keys(obj).reduce((aggr: any, key) => {
33+
if (key === '__esModule') {
34+
return aggr
35+
}
36+
3337
const originalDescriptor = Object.getOwnPropertyDescriptor(obj, key)
3438
const isAGetter = originalDescriptor && 'get' in originalDescriptor
3539
const value = obj[key]

0 commit comments

Comments
 (0)