We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c481851 commit 8c44c21Copy full SHA for 8c44c21
exports/index.mjs
@@ -1,5 +1,9 @@
1
// ES modules wrapper
2
-import { ReactRefreshRspackPlugin } from '../dist/index.js';
+import { createRequire } from 'node:module';
3
+
4
+const require = createRequire(import.meta.url);
5
+const { ReactRefreshRspackPlugin } = require('../dist/index.js');
6
7
// default export will be deprecated in next major version
8
export default ReactRefreshRspackPlugin;
9
export { ReactRefreshRspackPlugin };
0 commit comments