@rspack/plugin-react-refresh 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/exports/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  // ES modules wrapper
2
- import { createRequire } from 'node:module';
2
+ import pluginModule from '../dist/index.js';
3
3
 
4
- const require = createRequire(import.meta.url);
5
- const { ReactRefreshRspackPlugin } = require('../dist/index.js');
4
+ const ReactRefreshRspackPlugin =
5
+ pluginModule?.ReactRefreshRspackPlugin ??
6
+ pluginModule?.default ??
7
+ pluginModule;
6
8
 
7
9
  // default export will be deprecated in next major version
8
10
  export default ReactRefreshRspackPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/plugin-react-refresh",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "repository": "https://github.com/rstackjs/rspack-plugin-react-refresh",
5
5
  "license": "MIT",
6
6
  "description": "React refresh plugin for Rspack",