From f781e6d596477a4b7030481e04cb712cb812a272 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 14 Aug 2024 22:32:41 +0800 Subject: [PATCH 1/3] chore(deps): bump plugin-react-refresh and lite-tapable to v1.0.0 --- .../template-react-ts/package.json | 2 +- .../create-rspack/template-react/package.json | 2 +- packages/playground/package.json | 2 +- packages/rspack-dev-server/package.json | 2 +- packages/rspack/package.json | 2 +- pnpm-lock.yaml | 36 +++++++++---------- tests/diff-test/arco-pro/package.json | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/create-rspack/template-react-ts/package.json b/packages/create-rspack/template-react-ts/package.json index 7a4f9d0ed6a..80a961eed5c 100644 --- a/packages/create-rspack/template-react-ts/package.json +++ b/packages/create-rspack/template-react-ts/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@rspack/cli": "workspace:*", "@rspack/core": "workspace:*", - "@rspack/plugin-react-refresh": "1.0.0-beta.5", + "@rspack/plugin-react-refresh": "^1.0.0", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "cross-env": "^7.0.3", diff --git a/packages/create-rspack/template-react/package.json b/packages/create-rspack/template-react/package.json index 62a8ecf922c..5657daf8906 100644 --- a/packages/create-rspack/template-react/package.json +++ b/packages/create-rspack/template-react/package.json @@ -11,7 +11,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@rspack/plugin-react-refresh": "1.0.0-beta.5", + "@rspack/plugin-react-refresh": "^1.0.0", "@rspack/cli": "workspace:*", "@rspack/core": "workspace:*", "@types/react": "^18.2.48", diff --git a/packages/playground/package.json b/packages/playground/package.json index e4ef38ba4ea..2bdc0d19d1c 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -18,7 +18,7 @@ "core-js": "3.36.1", "@rspack/core": "workspace:*", "@rspack/dev-server": "workspace:*", - "@rspack/plugin-react-refresh": "1.0.0-beta.5", + "@rspack/plugin-react-refresh": "^1.0.0", "@swc/helpers": "0.5.8", "@types/fs-extra": "11.0.4", "babel-loader": "^9.1.3", diff --git a/packages/rspack-dev-server/package.json b/packages/rspack-dev-server/package.json index 26c82372991..7f9da066b14 100644 --- a/packages/rspack-dev-server/package.json +++ b/packages/rspack-dev-server/package.json @@ -40,7 +40,7 @@ "typescript": "5.0.2", "@rspack/core": "workspace:*", "@rspack/dev-server": "workspace:*", - "@rspack/plugin-react-refresh": "1.0.0-beta.5", + "@rspack/plugin-react-refresh": "^1.0.0", "@types/connect-history-api-fallback": "1.5.4", "@types/express": "4.17.21", "@types/mime-types": "2.1.4", diff --git a/packages/rspack/package.json b/packages/rspack/package.json index e97bf4e2c08..1e2d60d38ea 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -69,7 +69,7 @@ "dependencies": { "@module-federation/runtime-tools": "0.2.3", "@rspack/binding": "workspace:*", - "@rspack/lite-tapable": "1.0.0-beta.5", + "@rspack/lite-tapable": "^1.0.0", "caniuse-lite": "^1.0.30001616" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de42454b398..1ed19c3bb8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -151,8 +151,8 @@ importers: specifier: workspace:* version: link:../../rspack '@rspack/plugin-react-refresh': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(react-refresh@0.14.0) + specifier: ^1.0.0 + version: 1.0.0(react-refresh@0.14.0) '@types/react': specifier: ^18.2.48 version: 18.2.75 @@ -182,8 +182,8 @@ importers: specifier: workspace:* version: link:../../rspack '@rspack/plugin-react-refresh': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(react-refresh@0.14.0) + specifier: ^1.0.0 + version: 1.0.0(react-refresh@0.14.0) '@types/react': specifier: ^18.2.48 version: 18.2.75 @@ -295,8 +295,8 @@ importers: specifier: workspace:* version: link:../rspack-dev-server '@rspack/plugin-react-refresh': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(react-refresh@0.14.0) + specifier: ^1.0.0 + version: 1.0.0(react-refresh@0.14.0) '@swc/helpers': specifier: 0.5.8 version: 0.5.8 @@ -358,8 +358,8 @@ importers: specifier: workspace:* version: link:../../crates/node_binding '@rspack/lite-tapable': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5 + specifier: ^1.0.0 + version: 1.0.0 '@swc/helpers': specifier: '>=0.5.1' version: 0.5.8 @@ -526,8 +526,8 @@ importers: specifier: workspace:* version: 'link:' '@rspack/plugin-react-refresh': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(react-refresh@0.14.0) + specifier: ^1.0.0 + version: 1.0.0(react-refresh@0.14.0) '@types/connect-history-api-fallback': specifier: 1.5.4 version: 1.5.4 @@ -867,8 +867,8 @@ importers: specifier: workspace:* version: link:../../../packages/rspack '@rspack/plugin-react-refresh': - specifier: 1.0.0-beta.5 - version: 1.0.0-beta.5(react-refresh@0.14.0) + specifier: ^1.0.0 + version: 1.0.0(react-refresh@0.14.0) '@svgr/webpack': specifier: ^8.0.0 version: 8.1.0(typescript@5.4.2) @@ -2819,12 +2819,12 @@ packages: cpu: [x64] os: [win32] - '@rspack/lite-tapable@1.0.0-beta.5': - resolution: {integrity: sha512-jTmLhUeZgR3u+cHp5Z46FuTWUg+6VWWwbWkIzgVvQoN7YK9ntFfm7k5+cImTEQ0qe1r6P43uV0qD606SoZspKg==} + '@rspack/lite-tapable@1.0.0': + resolution: {integrity: sha512-7MZf4lburSUZoEenwazwUDKHhqyfnLCGnQ/tKcUtztfmVzfjZfRn/EaiT0AKkYGnL2U8AGsw89oUeVyvaOLVCw==} engines: {node: '>=16.0.0'} - '@rspack/plugin-react-refresh@1.0.0-beta.5': - resolution: {integrity: sha512-7pP8OBOkGa/D/ZnkXI7/atWIc5QJDlLHju/qpPGaomdE+Ut0qSzpW6Loya63CDwB0Ok8AQUGe1GsnbsRNset6w==} + '@rspack/plugin-react-refresh@1.0.0': + resolution: {integrity: sha512-WvXkLewW5G0Mlo5H1b251yDh5FFiH4NDAbYlFpvFjcuXX2AchZRf9zdw57BDE/ADyWsJgA8kixN/zZWBTN3iYA==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: @@ -11486,9 +11486,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.17.2': optional: true - '@rspack/lite-tapable@1.0.0-beta.5': {} + '@rspack/lite-tapable@1.0.0': {} - '@rspack/plugin-react-refresh@1.0.0-beta.5(react-refresh@0.14.0)': + '@rspack/plugin-react-refresh@1.0.0(react-refresh@0.14.0)': dependencies: error-stack-parser: 2.1.4 html-entities: 2.5.2 diff --git a/tests/diff-test/arco-pro/package.json b/tests/diff-test/arco-pro/package.json index 8524a6b102c..d52b6bd8be2 100644 --- a/tests/diff-test/arco-pro/package.json +++ b/tests/diff-test/arco-pro/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@rspack/core": "workspace:*", - "@rspack/plugin-react-refresh": "1.0.0-beta.5", + "@rspack/plugin-react-refresh": "^1.0.0", "@svgr/webpack": "^8.0.0", "@swc/core": "1.4.0", "@swc/helpers": "0.5.8", From 40b8ea7de599802e0ae15814d969da3a6b1da7d5 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Thu, 15 Aug 2024 08:12:14 +0800 Subject: [PATCH 2/3] fix: snapshot --- packages/rspack-test-tools/tests/errorCases/error-test-push.js | 2 +- packages/rspack-test-tools/tests/errorCases/error-test-shift.js | 2 +- .../rspack-test-tools/tests/errorCases/error-test-splice-1.js | 2 +- .../rspack-test-tools/tests/errorCases/error-test-splice-2.js | 2 +- .../rspack-test-tools/tests/errorCases/warning-test-push.js | 2 +- .../rspack-test-tools/tests/errorCases/warning-test-shift.js | 2 +- .../rspack-test-tools/tests/errorCases/warning-test-splice-1.js | 2 +- .../rspack-test-tools/tests/errorCases/warning-test-splice-2.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/rspack-test-tools/tests/errorCases/error-test-push.js b/packages/rspack-test-tools/tests/errorCases/error-test-push.js index f690355fe46..cc8bd04817d 100644 --- a/packages/rspack-test-tools/tests/errorCases/error-test-push.js +++ b/packages/rspack-test-tools/tests/errorCases/error-test-push.js @@ -20,7 +20,7 @@ module.exports = { Object { "message": " × Error: test push\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test push\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:31)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test push\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:31)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, Object { "loc": "1:0-33", diff --git a/packages/rspack-test-tools/tests/errorCases/error-test-shift.js b/packages/rspack-test-tools/tests/errorCases/error-test-shift.js index 504fa88f9e2..ede65769e34 100644 --- a/packages/rspack-test-tools/tests/errorCases/error-test-shift.js +++ b/packages/rspack-test-tools/tests/errorCases/error-test-shift.js @@ -24,7 +24,7 @@ module.exports = { Object { "message": " × Error: test unshift\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test unshift\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-shift.js:13:35)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test unshift\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-shift.js:13:35)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, ], "warnings": Array [], diff --git a/packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js b/packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js index a12fd57ef07..516d89f2ed5 100644 --- a/packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js +++ b/packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js @@ -20,7 +20,7 @@ module.exports = { Object { "message": " × Error: test splice\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js:10:39)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js:10:39)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, ], "warnings": Array [], diff --git a/packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js b/packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js index 25940a01e31..b31ff321697 100644 --- a/packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js +++ b/packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js @@ -20,7 +20,7 @@ module.exports = { Object { "message": " × Error: test splice\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js:10:39)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js:10:39)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, Object { "loc": "1:0-33", diff --git a/packages/rspack-test-tools/tests/errorCases/warning-test-push.js b/packages/rspack-test-tools/tests/errorCases/warning-test-push.js index d52d720aba7..ffbfc544304 100644 --- a/packages/rspack-test-tools/tests/errorCases/warning-test-push.js +++ b/packages/rspack-test-tools/tests/errorCases/warning-test-push.js @@ -21,7 +21,7 @@ module.exports = { Object { "message": " ⚠ Error: test push\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test push\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-push.js:10:33)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test push\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-push.js:10:33)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, Object { "message": " ⚠ Module parse warning:\\n ╰─▶ ⚠ Unsupported feature: require.main.require() is not supported by Rspack.\\n ╭────\\n 1 │ require.main.require('./file');\\n · ──────────────────────────────\\n ╰────\\n \\n", diff --git a/packages/rspack-test-tools/tests/errorCases/warning-test-shift.js b/packages/rspack-test-tools/tests/errorCases/warning-test-shift.js index 70db5957243..640aecad6a0 100644 --- a/packages/rspack-test-tools/tests/errorCases/warning-test-shift.js +++ b/packages/rspack-test-tools/tests/errorCases/warning-test-shift.js @@ -25,7 +25,7 @@ module.exports = { Object { "message": " ⚠ Error: test unshift\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test unshift\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-shift.js:13:37)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test unshift\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-shift.js:13:37)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, ], } diff --git a/packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js b/packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js index 28a1b25d888..aeb1dd688e3 100644 --- a/packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js +++ b/packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js @@ -21,7 +21,7 @@ module.exports = { Object { "message": " ⚠ Error: test splice\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js:10:41)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-splice-1.js:10:41)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, ], } diff --git a/packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js b/packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js index c8dbfb24560..f53af6f219b 100644 --- a/packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js +++ b/packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js @@ -21,7 +21,7 @@ module.exports = { Object { "message": " ⚠ Error: test splice\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n │ at xxx\\n", "moduleTrace": Array [], - "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js:10:41)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0-beta.5/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", + "stack": "Error: test splice\\n at Object.fn (packages/rspack-test-tools/tests/errorCases/warning-test-splice-2.js:10:41)\\n at next (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:523:25)\\n at AsyncSeriesHook.callAsyncStageRange (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:543:9)\\n at AsyncSeriesHook.callAsync (node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:82:21)\\n at packages/rspack/dist/Compiler.js:462:41\\n at packages/rspack/dist/Compiler.js:529:23", }, Object { "message": " ⚠ Module parse warning:\\n ╰─▶ ⚠ Unsupported feature: require.main.require() is not supported by Rspack.\\n ╭────\\n 1 │ require.main.require('./file');\\n · ──────────────────────────────\\n ╰────\\n \\n", From 8dc0932dc4cd158a3728af304392f5e25357707d Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Thu, 15 Aug 2024 08:13:15 +0800 Subject: [PATCH 3/3] fix: lock --- .../create-rspack/template-react-ts/package.json | 2 +- packages/create-rspack/template-react/package.json | 2 +- packages/playground/package.json | 2 +- packages/rspack-dev-server/package.json | 2 +- packages/rspack/package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ tests/diff-test/arco-pro/package.json | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/create-rspack/template-react-ts/package.json b/packages/create-rspack/template-react-ts/package.json index 80a961eed5c..228377f6328 100644 --- a/packages/create-rspack/template-react-ts/package.json +++ b/packages/create-rspack/template-react-ts/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@rspack/cli": "workspace:*", "@rspack/core": "workspace:*", - "@rspack/plugin-react-refresh": "^1.0.0", + "@rspack/plugin-react-refresh": "1.0.0", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "cross-env": "^7.0.3", diff --git a/packages/create-rspack/template-react/package.json b/packages/create-rspack/template-react/package.json index 5657daf8906..e782d8f3135 100644 --- a/packages/create-rspack/template-react/package.json +++ b/packages/create-rspack/template-react/package.json @@ -11,7 +11,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@rspack/plugin-react-refresh": "^1.0.0", + "@rspack/plugin-react-refresh": "1.0.0", "@rspack/cli": "workspace:*", "@rspack/core": "workspace:*", "@types/react": "^18.2.48", diff --git a/packages/playground/package.json b/packages/playground/package.json index 2bdc0d19d1c..1fc4374ac8a 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -18,7 +18,7 @@ "core-js": "3.36.1", "@rspack/core": "workspace:*", "@rspack/dev-server": "workspace:*", - "@rspack/plugin-react-refresh": "^1.0.0", + "@rspack/plugin-react-refresh": "1.0.0", "@swc/helpers": "0.5.8", "@types/fs-extra": "11.0.4", "babel-loader": "^9.1.3", diff --git a/packages/rspack-dev-server/package.json b/packages/rspack-dev-server/package.json index 7f9da066b14..e8d1bca8ad8 100644 --- a/packages/rspack-dev-server/package.json +++ b/packages/rspack-dev-server/package.json @@ -40,7 +40,7 @@ "typescript": "5.0.2", "@rspack/core": "workspace:*", "@rspack/dev-server": "workspace:*", - "@rspack/plugin-react-refresh": "^1.0.0", + "@rspack/plugin-react-refresh": "1.0.0", "@types/connect-history-api-fallback": "1.5.4", "@types/express": "4.17.21", "@types/mime-types": "2.1.4", diff --git a/packages/rspack/package.json b/packages/rspack/package.json index 1e2d60d38ea..1c58b487f24 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -69,7 +69,7 @@ "dependencies": { "@module-federation/runtime-tools": "0.2.3", "@rspack/binding": "workspace:*", - "@rspack/lite-tapable": "^1.0.0", + "@rspack/lite-tapable": "1.0.0", "caniuse-lite": "^1.0.30001616" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1ed19c3bb8d..99cf64da389 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -151,7 +151,7 @@ importers: specifier: workspace:* version: link:../../rspack '@rspack/plugin-react-refresh': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) '@types/react': specifier: ^18.2.48 @@ -182,7 +182,7 @@ importers: specifier: workspace:* version: link:../../rspack '@rspack/plugin-react-refresh': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) '@types/react': specifier: ^18.2.48 @@ -295,7 +295,7 @@ importers: specifier: workspace:* version: link:../rspack-dev-server '@rspack/plugin-react-refresh': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) '@swc/helpers': specifier: 0.5.8 @@ -358,7 +358,7 @@ importers: specifier: workspace:* version: link:../../crates/node_binding '@rspack/lite-tapable': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0 '@swc/helpers': specifier: '>=0.5.1' @@ -526,7 +526,7 @@ importers: specifier: workspace:* version: 'link:' '@rspack/plugin-react-refresh': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) '@types/connect-history-api-fallback': specifier: 1.5.4 @@ -867,7 +867,7 @@ importers: specifier: workspace:* version: link:../../../packages/rspack '@rspack/plugin-react-refresh': - specifier: ^1.0.0 + specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) '@svgr/webpack': specifier: ^8.0.0 diff --git a/tests/diff-test/arco-pro/package.json b/tests/diff-test/arco-pro/package.json index d52b6bd8be2..ce84e3d45a7 100644 --- a/tests/diff-test/arco-pro/package.json +++ b/tests/diff-test/arco-pro/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@rspack/core": "workspace:*", - "@rspack/plugin-react-refresh": "^1.0.0", + "@rspack/plugin-react-refresh": "1.0.0", "@svgr/webpack": "^8.0.0", "@swc/core": "1.4.0", "@swc/helpers": "0.5.8",