Skip to content

Commit

Permalink
fix: Add fix for hoistNonReactStatics available when not using dynami…
Browse files Browse the repository at this point in the history
…c-cdn-webpack-plugin (#5060)
  • Loading branch information
smouillour authored Dec 14, 2023
1 parent d7ecf98 commit 777cc55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-donkeys-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/scripts-config-react-webpack': patch
---

Add patch for hoistNonReactStatics when we are not using initiator
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ async function getIndexTemplate(env, mode, indexTemplatePath, useInitiator = tru
headScript = `${renderMeta()}<base href="${BASENAME}" />
<script type="text/javascript">
window.basename = '${BASENAME}';
var process = { browser: true, env: { NODE_ENV: '${mode}' } };
</script>`;
}
const header = `${customHead}
Expand Down

0 comments on commit 777cc55

Please sign in to comment.