Skip to content

Commit

Permalink
fix: refresh utils missing apply compiler in DevelopmentPlugin (#842)
Browse files Browse the repository at this point in the history
* fix: refresh utils not applied

* chore: changeset
  • Loading branch information
jbroma authored Dec 30, 2024
1 parent 6a210ed commit d8eb77e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-rockets-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@callstack/repack": patch
---

Fix missing apply on ProvidePlugin for React Refresh Utils in DevelopmentPlugin
2 changes: 1 addition & 1 deletion packages/repack/src/plugins/DevelopmentPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class DevelopmentPlugin implements RspackPluginInstance {

new compiler.webpack.ProvidePlugin({
__react_refresh_utils__: refreshUtilsPath,
});
}).apply(compiler);

const refreshPath = path.dirname(require.resolve('react-refresh'));
compiler.options.resolve.alias = {
Expand Down

0 comments on commit d8eb77e

Please sign in to comment.