diff --git a/lib/scenarios/index.js b/lib/scenarios/index.js index e95b8809..dc3e6342 100644 --- a/lib/scenarios/index.js +++ b/lib/scenarios/index.js @@ -119,11 +119,6 @@ module.exports.plugins.push(new (require("../../lib/scenarios/build-plugin.cjs") path.resolve(rspackDir, "packages/rspack-cli"), path.resolve(rootDir, "node_modules/@rspack/cli") ]); - await runCommand("ln", [ - "-nsf", - path.resolve(rspackDir, "packages/rspack-plugin-react-refresh"), - path.resolve(rootDir, "node_modules/@rspack/plugin-react-refresh") - ]); }, async warmup(ctx) { console.log("Run Rspack with args:", ctx.rspackArgs); diff --git a/package.json b/package.json index 5e119f1a..8f3a61e8 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "dependencies": { "@actions/core": "^1.10.1", "@icon-park/react": "^1.4.2", + "@rspack/plugin-react-refresh": "^0.7.5", "meow": "^13.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1acc90c8..fed4fc98 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@icon-park/react': specifier: ^1.4.2 version: 1.4.2(react-dom@18.2.0)(react@18.2.0) + '@rspack/plugin-react-refresh': + specifier: ^0.7.5 + version: 0.7.5(react-refresh@0.14.0) meow: specifier: ^13.2.0 version: 13.2.0 @@ -1787,6 +1790,17 @@ packages: react-is: 16.13.1 dev: false + /@rspack/plugin-react-refresh@0.7.5(react-refresh@0.14.0): + resolution: {integrity: sha512-ROI9lrmfIH+Z9lbBaP3YMhbD2R3rlm9SSzi/9WzzkQU6KK911S1D+sL2ByeJ7ipZafbHvMPWTmC2aQEvjhwQig==} + peerDependencies: + react-refresh: '>=0.10.0 <1.0.0' + peerDependenciesMeta: + react-refresh: + optional: true + dependencies: + react-refresh: 0.14.0 + dev: false + /@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.9): resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==} engines: {node: '>=14'}