diff --git a/.changeset/fifty-rockets-laugh.md b/.changeset/fifty-rockets-laugh.md new file mode 100644 index 000000000..60d91f6d8 --- /dev/null +++ b/.changeset/fifty-rockets-laugh.md @@ -0,0 +1,5 @@ +--- +"@callstack/repack": patch +--- + +Fix missing apply on ProvidePlugin for React Refresh Utils in DevelopmentPlugin diff --git a/packages/repack/src/plugins/DevelopmentPlugin.ts b/packages/repack/src/plugins/DevelopmentPlugin.ts index a2fa55a20..4330c27c6 100644 --- a/packages/repack/src/plugins/DevelopmentPlugin.ts +++ b/packages/repack/src/plugins/DevelopmentPlugin.ts @@ -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 = {