Skip to content

Commit

Permalink
fix: disable react refresh in babel loader if optimized for gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Apr 29, 2021
1 parent f2b4cd9 commit 8feddc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/scripts/src/config/WebpackConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ ${bannerConfig.copyrightText}${bannerConfig.credit ? creditNote : ''}`,
if (
this.config.hasReact &&
!this.config.disableReactRefresh &&
!this.file.optimizeForGutenberg &&
addReactRefresh &&
this.isDev
) {
Expand Down

0 comments on commit 8feddc7

Please sign in to comment.