From acb705aea03b7b35c1b345c46ee8f98df64bffdc Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Fri, 16 May 2025 14:53:47 +0100 Subject: [PATCH] Fix CSP by remove globalThis polyfill --- webpack/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js index a953ddc..df609ae 100644 --- a/webpack/webpack.config.js +++ b/webpack/webpack.config.js @@ -60,6 +60,9 @@ const config = { extractComments: false }) ] + }, + node: { + global: false // Prevents webpack from breaking CSP, see https://github.com/microlinkhq/react-json-view/issues/76 } }