Skip to content

Commit 37d1027

Browse files
authored
Merge pull request #77 from robbie-c/fix-csp
Fix CSP by removing globalThis polyfill
2 parents 22317a1 + acb705a commit 37d1027

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webpack/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ const config = {
6060
extractComments: false
6161
})
6262
]
63+
},
64+
node: {
65+
global: false // Prevents webpack from breaking CSP, see https://github.com/microlinkhq/react-json-view/issues/76
6366
}
6467
}
6568

0 commit comments

Comments
 (0)