From 777cc55fe681c0eb4f40bef3cd0e6de7d97a2c9a Mon Sep 17 00:00:00 2001
From: Sebastien LE MOUILLOUR <32456736+smouillour@users.noreply.github.com>
Date: Thu, 14 Dec 2023 15:08:05 +0100
Subject: [PATCH] fix: Add fix for hoistNonReactStatics available when not
using dynamic-cdn-webpack-plugin (#5060)
---
.changeset/dry-donkeys-study.md | 5 +++++
tools/scripts-config-react-webpack/config/webpack.config.js | 1 +
2 files changed, 6 insertions(+)
create mode 100644 .changeset/dry-donkeys-study.md
diff --git a/.changeset/dry-donkeys-study.md b/.changeset/dry-donkeys-study.md
new file mode 100644
index 00000000000..0708be8f4ad
--- /dev/null
+++ b/.changeset/dry-donkeys-study.md
@@ -0,0 +1,5 @@
+---
+'@talend/scripts-config-react-webpack': patch
+---
+
+Add patch for hoistNonReactStatics when we are not using initiator
diff --git a/tools/scripts-config-react-webpack/config/webpack.config.js b/tools/scripts-config-react-webpack/config/webpack.config.js
index 2df686d9e58..16494e4cbdd 100644
--- a/tools/scripts-config-react-webpack/config/webpack.config.js
+++ b/tools/scripts-config-react-webpack/config/webpack.config.js
@@ -201,6 +201,7 @@ async function getIndexTemplate(env, mode, indexTemplatePath, useInitiator = tru
headScript = `${renderMeta()}
`;
}
const header = `${customHead}