Skip to content

Commit 8feddc7

Browse files
committed
fix: disable react refresh in babel loader if optimized for gutenberg
1 parent f2b4cd9 commit 8feddc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/scripts/src/config/WebpackConfigHelper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
679679
if (
680680
this.config.hasReact &&
681681
!this.config.disableReactRefresh &&
682+
!this.file.optimizeForGutenberg &&
682683
addReactRefresh &&
683684
this.isDev
684685
) {

0 commit comments

Comments
 (0)