diff --git a/package.json b/package.json index c452ba0..ef81eae 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@biomejs/biome": "^1.8.3", "@jest/reporters": "29.7.0", "@jest/test-sequencer": "^29.7.0", - "@rspack/core": "1.4.1", + "@rspack/core": "npm:@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256", "@rspack/plugin-react-refresh": "1.0.0", "@types/express": "4.17.21", "@types/jest": "29.5.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0c83ee9..3afbe53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,8 +37,8 @@ importers: specifier: ^29.7.0 version: 29.7.0 '@rspack/core': - specifier: 1.4.1 - version: 1.4.1 + specifier: npm:@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256 + version: '@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256' '@rspack/plugin-react-refresh': specifier: 1.0.0 version: 1.0.0(react-refresh@0.14.0) @@ -62,7 +62,7 @@ importers: version: 7.0.3 css-loader: specifier: ^7.1.2 - version: 7.1.2(@rspack/core@1.4.1)(webpack@5.94.0) + version: 7.1.2(@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256)(webpack@5.94.0) execa: specifier: 9.3.0 version: 9.3.0 @@ -527,60 +527,60 @@ packages: engines: {node: '>=18'} hasBin: true - '@rspack/binding-darwin-arm64@1.4.1': - resolution: {integrity: sha512-enh5DYbpaexdEmjbcxj3BJDauP3w+20jFKWvKROtAQV350PUw0bf2b4WOgngIH9hBzlfjpXNYAk6T5AhVAlY3Q==} + '@rspack-canary/binding-darwin-arm64@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-x8CAVBOeunQBftEwOOHJSVRTUXlfK9jQCaJS7inNE47G7SaVFtFAOGw6DBTTUplmX8eJ+QapVBaPVg95gYELQg==} cpu: [arm64] os: [darwin] - '@rspack/binding-darwin-x64@1.4.1': - resolution: {integrity: sha512-KoehyhBji4TLXhn4mqOUw6xsQNRzNVA9XcCm1Jx+M1Qb0dhMTNfduvBSyXuRV5+/QaRbk7+4UJbyRNFUtt96kA==} + '@rspack-canary/binding-darwin-x64@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-kZsoki8s+6s1KGp7qhjLeqfI1toolqfhXCfNGV5V2Gyw8bFCUpwcfXvfoR4DFgVdqhLj6Fd10BBbfbM6kNILtw==} cpu: [x64] os: [darwin] - '@rspack/binding-linux-arm64-gnu@1.4.1': - resolution: {integrity: sha512-PJ5cHqvrj1bK7jH5DVrdKoR8Fy+p6l9baxXajq/6xWTxP+4YTdEtLsRZnpLMS1Ho2RRpkxDWJn+gdlKuleNioQ==} + '@rspack-canary/binding-linux-arm64-gnu@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-fn88EEKfJrC94e4Zi57prT53NSPey+hTe6ZI9mFlm9pkGXgWAvMdzxy/sc061ct88yn0oezfFEzuNHtby0HeuA==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-arm64-musl@1.4.1': - resolution: {integrity: sha512-cpDz+z3FwVQfK6VYfXQEb0ym6fFIVmvK4y3R/2VAbVGWYVxZB5I6AcSdOWdDnpppHmcHpf+qQFlwhHvbpMMJNQ==} + '@rspack-canary/binding-linux-arm64-musl@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-0285DQ2fRf3cZlGKVRA8Ab4Y9t6bhPZnJPxo3oDrKddxNPOLVzrXBAZDlb4uwHFIcQd11OrgecNvNcCKI0zL9Q==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-x64-gnu@1.4.1': - resolution: {integrity: sha512-jjTx53CpiYWK7fAv5qS8xHEytFK6gLfZRk+0kt2YII6uqez/xQ3SRcboreH8XbJcBoxINBzMNMf5/SeMBZ939A==} + '@rspack-canary/binding-linux-x64-gnu@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-Ls8Yhe2ZS79OxDaK3bn2i2QF6nZKCRxpAy6XB7lbD0dDG2JW9/ON+iKpltwinTtwIO2d7K2qKJwubDzqTYnQIA==} cpu: [x64] os: [linux] - '@rspack/binding-linux-x64-musl@1.4.1': - resolution: {integrity: sha512-FAyR3Og81Smtr/CnsuTiW4ZCYAPCqeV73lzMKZ9xdVUgM9324ryEgqgX38GZLB5Mo7cvQhv7/fpMeHQo16XQCw==} + '@rspack-canary/binding-linux-x64-musl@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-svXr4ryHICO9F7K5+muG3r5ErjnceiyhgBjbP0pVg2uftATuJBeBLsoB4FDrTtM4TWI78leB9VNmQyKF3FsSVg==} cpu: [x64] os: [linux] - '@rspack/binding-wasm32-wasi@1.4.1': - resolution: {integrity: sha512-3Q1VICIQP4GsaTJEmmwfowQ48NvhlL0CKH88l5+mbji2rBkGx7yR67pPdfCVNjXcCtFoemTYw98eaumJTjC++g==} + '@rspack-canary/binding-wasm32-wasi@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-quXMvknMtfnsblnocDNDYK/HNmUQq22CYjqQSRKiUFnIxTbTwsXu1vGs/186PXTQUQZctFNSJnoKbRSt3SN1TQ==} cpu: [wasm32] - '@rspack/binding-win32-arm64-msvc@1.4.1': - resolution: {integrity: sha512-DdLPOy1J98kn45uEhiEqlBKgMvet+AxOzX2OcrnU0wQXthGM9gty1YXYNryOhlK+X+eOcwcP3GbnDOAKi8nKqw==} + '@rspack-canary/binding-win32-arm64-msvc@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-SI0WhzKK2gjvBBBQFCX3RSNLw/UWo7MKyqKir/bFfxiv/DksIPEbXB2IZ8bjd6vtYTcg3ZprCqcuJdnLARvQ/A==} cpu: [arm64] os: [win32] - '@rspack/binding-win32-ia32-msvc@1.4.1': - resolution: {integrity: sha512-13s8fYtyC9DyvKosD2Kvzd6fVZDZZyPp91L4TEXWaO0CFhaCbtLTYIntExq9MwtKHYKKx7bchIFw93o0xjKjUg==} + '@rspack-canary/binding-win32-ia32-msvc@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-Zci5Oo3A+Go5O2QIXBzypwokEtBTyQaoLvqppCl4olcD/a63+vGiKCh/GWYBxLIcYiqFyLWJyEG1IgeRwYJGDg==} cpu: [ia32] os: [win32] - '@rspack/binding-win32-x64-msvc@1.4.1': - resolution: {integrity: sha512-ubQW8FcLnwljDanwTzkC9Abyo59gmX8m9uVr1GHOEuEU9Cua0KMijX2j/MYfiziz4nuQgv1saobY7K1I5nE3YA==} + '@rspack-canary/binding-win32-x64-msvc@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-FPrOiNyfoLJRfOn/7NeHO2Be7451+dVbJwFIYYLjWgGtZZBvWKY3/EQDlm/YDkSo1wzMKfu8XLee8jjHKhYF5A==} cpu: [x64] os: [win32] - '@rspack/binding@1.4.1': - resolution: {integrity: sha512-zYgOmI+LC2zxB/LIcnaeK66ElFHaPChdWzRruTT1LAFFwpgGkBGAwFoP27PDnxQW0Aejci21Ld8X9tyxm08QFw==} + '@rspack-canary/binding@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-cwJ5WjPmQQ+quuA4wYkIPTAEOt7VeRZP7x2sgxJDjLRyooC1OJtS00XFqNWjLAerrE0jskFWFKV4rgIeKymw8Q==} - '@rspack/core@1.4.1': - resolution: {integrity: sha512-UTRCTQk2G8YiPBiMvfn8FcysxeO4Muek6a/Z39Cw2r4ZI8k5iPnKiyZboTJLS7120PwWBw2SO+QQje35Z44x0g==} + '@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256': + resolution: {integrity: sha512-ge9y0DyVi8IW3AkKKlS8BeFy9Xq1Sbftt632RIM/7ExVwuBTZg/w5y9Uf1RbiWpWfNjMZnnxZSOFI3VXmF6UOQ==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -3427,55 +3427,55 @@ snapshots: transitivePeerDependencies: - supports-color - '@rspack/binding-darwin-arm64@1.4.1': + '@rspack-canary/binding-darwin-arm64@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-darwin-x64@1.4.1': + '@rspack-canary/binding-darwin-x64@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-linux-arm64-gnu@1.4.1': + '@rspack-canary/binding-linux-arm64-gnu@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-linux-arm64-musl@1.4.1': + '@rspack-canary/binding-linux-arm64-musl@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-linux-x64-gnu@1.4.1': + '@rspack-canary/binding-linux-x64-gnu@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-linux-x64-musl@1.4.1': + '@rspack-canary/binding-linux-x64-musl@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-wasm32-wasi@1.4.1': + '@rspack-canary/binding-wasm32-wasi@1.4.3-canary-98b815e4-20250703091256': dependencies: '@napi-rs/wasm-runtime': 0.2.11 optional: true - '@rspack/binding-win32-arm64-msvc@1.4.1': + '@rspack-canary/binding-win32-arm64-msvc@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-win32-ia32-msvc@1.4.1': + '@rspack-canary/binding-win32-ia32-msvc@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding-win32-x64-msvc@1.4.1': + '@rspack-canary/binding-win32-x64-msvc@1.4.3-canary-98b815e4-20250703091256': optional: true - '@rspack/binding@1.4.1': + '@rspack-canary/binding@1.4.3-canary-98b815e4-20250703091256': optionalDependencies: - '@rspack/binding-darwin-arm64': 1.4.1 - '@rspack/binding-darwin-x64': 1.4.1 - '@rspack/binding-linux-arm64-gnu': 1.4.1 - '@rspack/binding-linux-arm64-musl': 1.4.1 - '@rspack/binding-linux-x64-gnu': 1.4.1 - '@rspack/binding-linux-x64-musl': 1.4.1 - '@rspack/binding-wasm32-wasi': 1.4.1 - '@rspack/binding-win32-arm64-msvc': 1.4.1 - '@rspack/binding-win32-ia32-msvc': 1.4.1 - '@rspack/binding-win32-x64-msvc': 1.4.1 - - '@rspack/core@1.4.1': + '@rspack/binding-darwin-arm64': '@rspack-canary/binding-darwin-arm64@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-darwin-x64': '@rspack-canary/binding-darwin-x64@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-linux-arm64-gnu': '@rspack-canary/binding-linux-arm64-gnu@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-linux-arm64-musl': '@rspack-canary/binding-linux-arm64-musl@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-linux-x64-gnu': '@rspack-canary/binding-linux-x64-gnu@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-linux-x64-musl': '@rspack-canary/binding-linux-x64-musl@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-wasm32-wasi': '@rspack-canary/binding-wasm32-wasi@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-win32-arm64-msvc': '@rspack-canary/binding-win32-arm64-msvc@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-win32-ia32-msvc': '@rspack-canary/binding-win32-ia32-msvc@1.4.3-canary-98b815e4-20250703091256' + '@rspack/binding-win32-x64-msvc': '@rspack-canary/binding-win32-x64-msvc@1.4.3-canary-98b815e4-20250703091256' + + '@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256': dependencies: '@module-federation/runtime-tools': 0.15.0 - '@rspack/binding': 1.4.1 + '@rspack/binding': '@rspack-canary/binding@1.4.3-canary-98b815e4-20250703091256' '@rspack/lite-tapable': 1.0.1 '@rspack/lite-tapable@1.0.1': {} @@ -4130,7 +4130,7 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - css-loader@7.1.2(@rspack/core@1.4.1)(webpack@5.94.0): + css-loader@7.1.2(@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256)(webpack@5.94.0): dependencies: icss-utils: 5.1.0(postcss@8.4.47) postcss: 8.4.47 @@ -4141,7 +4141,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.6.3 optionalDependencies: - '@rspack/core': 1.4.1 + '@rspack/core': '@rspack-canary/core@1.4.3-canary-98b815e4-20250703091256' webpack: 5.94.0 cssesc@3.0.0: {} diff --git a/tests/e2e/__snapshots__/logging.test.js.snap.webpack5 b/tests/e2e/__snapshots__/logging.test.js.snap.webpack5 index 9a1e9c4..ac01199 100644 --- a/tests/e2e/__snapshots__/logging.test.js.snap.webpack5 +++ b/tests/e2e/__snapshots__/logging.test.js.snap.webpack5 @@ -21,14 +21,7 @@ exports[`logging should work and log errors by default (sockjs) 1`] = ` Hey., [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -40,14 +33,7 @@ exports[`logging should work and log errors by default (ws) 1`] = ` Hey., [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -135,14 +121,7 @@ exports[`logging should work and log only error (sockjs) 1`] = ` Hey., [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -152,14 +131,7 @@ exports[`logging should work and log only error (ws) 1`] = ` Hey., [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -193,25 +165,11 @@ exports[`logging should work and log warning and errors (sockjs) 1`] = ` Hey., [webpack-dev-server] Warnings while compiling., [webpack-dev-server] WARNING - ⚠ Error: Warning from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + ⚠ Warning from compilation , [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -221,25 +179,11 @@ exports[`logging should work and log warning and errors (ws) 1`] = ` Hey., [webpack-dev-server] Warnings while compiling., [webpack-dev-server] WARNING - ⚠ Error: Warning from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + ⚠ Warning from compilation , [webpack-dev-server] Errors while compiling. Reload prevented., [webpack-dev-server] ERROR - × Error: Error from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + × Error from compilation , ] `; @@ -251,14 +195,7 @@ exports[`logging should work and log warnings by default (sockjs) 1`] = ` Hey., [webpack-dev-server] Warnings while compiling., [webpack-dev-server] WARNING - ⚠ Error: Warning from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + ⚠ Warning from compilation , ] `; @@ -270,14 +207,7 @@ exports[`logging should work and log warnings by default (ws) 1`] = ` Hey., [webpack-dev-server] Warnings while compiling., [webpack-dev-server] WARNING - ⚠ Error: Warning from compilation - │ at /tests/e2e/logging.test.js:: - │ at Object.fn (/dist/index.js::) - │ at SyncHook.callAsyncStageRange (/index.js::) - │ at SyncHook.callStageRange (/index.js::) - │ at QueriedHook.call (/index.js::) - │ at /dist/index.js:: - │ at last.function (/dist/index.js::) + ⚠ Warning from compilation , ] `; diff --git a/tests/e2e/__snapshots__/overlay.test.js.snap.webpack5 b/tests/e2e/__snapshots__/overlay.test.js.snap.webpack5 index 5508aad..c0d39cb 100644 --- a/tests/e2e/__snapshots__/overlay.test.js.snap.webpack5 +++ b/tests/e2e/__snapshots__/overlay.test.js.snap.webpack5 @@ -599,20 +599,7 @@ exports[`overlay should show a warning after invalidation: overlay html 1`] = ` font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -717,20 +704,7 @@ exports[`overlay should show a warning and error for initial compilation and pro font-family: Menlo, Consolas, monospace; " > - ⚠ Error: <strong>strong</strong> │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ <strong>strong</strong>
- × Error: <strong>strong</strong> │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × <strong>strong</strong>
@@ -875,20 +836,7 @@ exports[`overlay should show a warning and error for initial compilation: overla font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation
- ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation
- × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module.
- × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module.
- × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module.
@@ -1153,20 +1049,7 @@ exports[`overlay should show a warning and hide them after closing connection: o font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -1279,20 +1162,7 @@ exports[`overlay should show a warning for initial compilation: overlay html 1`] font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -1397,20 +1267,7 @@ exports[`overlay should show a warning when "client.overlay" is "true": overlay font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -1515,20 +1372,7 @@ exports[`overlay should show a warning when "client.overlay.errors" is "true": o font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -1633,20 +1477,7 @@ exports[`overlay should show a warning when "client.overlay.warnings" is "true": font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -1751,7 +1582,7 @@ exports[`overlay should show an ansi formatted error for initial compilation: ov font-family: Menlo, Consolas, monospace; " > - × Error: + × - │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) @@ -1890,20 +1707,7 @@ exports[`overlay should show an error after invalidation: overlay html 1`] = ` font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation @@ -2008,20 +1812,7 @@ exports[`overlay should show an error for initial compilation: overlay html 1`] font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -2126,20 +1917,7 @@ exports[`overlay should show an error when "client.overlay" is "true": overlay h font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -2244,20 +2022,7 @@ exports[`overlay should show an error when "client.overlay.errors" is "true": ov font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -2362,20 +2127,7 @@ exports[`overlay should show an error when "client.overlay.warnings" is "true": font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Warning from compilation │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Warning from compilation @@ -2649,20 +2401,7 @@ exports[`overlay should show error when it is not filtered: overlay html 1`] = ` font-family: Menlo, Consolas, monospace; " > - × Error: Unfiltered error │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Unfiltered error @@ -2767,20 +2506,7 @@ exports[`overlay should show overlay when "Content-Security-Policy" is "default- font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -2885,20 +2611,7 @@ exports[`overlay should show overlay when Trusted Types are enabled and the "req font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -3003,20 +2716,7 @@ exports[`overlay should show overlay when Trusted Types are enabled: overlay htm font-family: Menlo, Consolas, monospace; " > - × Error: Error from compilation. Can't find 'test' module. │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + × Error from compilation. Can't find 'test' module. @@ -3121,20 +2821,7 @@ exports[`overlay should show warning when it is not filtered: overlay html 1`] = font-family: Menlo, Consolas, monospace; " > - ⚠ Error: Unfiltered warning │ at - /tests/e2e/overlay.test.js:: - │ at Object.fn - (/dist/index.js::) - │ at SyncHook.callAsyncStageRange - (/index.js::) - │ at SyncHook.callStageRange - (/index.js::) - │ at QueriedHook.call - (/index.js::) - │ at - /dist/index.js:: - │ at last.function - (/dist/index.js::) + ⚠ Unfiltered warning diff --git a/tests/fixtures/worker-config-dev-server-false/public/worker-bundle.js b/tests/fixtures/worker-config-dev-server-false/public/worker-bundle.js index b6b490a..a39e1a9 100644 --- a/tests/fixtures/worker-config-dev-server-false/public/worker-bundle.js +++ b/tests/fixtures/worker-config-dev-server-false/public/worker-bundle.js @@ -1,35 +1,4 @@ (() => { // webpackBootstrap -var __webpack_modules__ = ({}); -/************************************************************************/ -// The module cache -var __webpack_module_cache__ = {}; - -// The require function -function __webpack_require__(moduleId) { - -// Check if module is in cache -var cachedModule = __webpack_module_cache__[moduleId]; -if (cachedModule !== undefined) { -return cachedModule.exports; -} -// Create a new module (and put it into the cache) -var module = (__webpack_module_cache__[moduleId] = { -exports: {} -}); -// Execute the module function -__webpack_modules__[moduleId](module, module.exports, __webpack_require__); - -// Return the exports of the module -return module.exports; - -} - -/************************************************************************/ -// webpack/runtime/rspack_version -(() => { -__webpack_require__.rv = () => ("1.4.1") -})(); -/************************************************************************/ /*!*******************!*\ !*** ./worker.js ***! diff --git a/tests/fixtures/worker-config-dev-server-false/webpack.config.js b/tests/fixtures/worker-config-dev-server-false/webpack.config.js index b4e2c86..960f599 100644 --- a/tests/fixtures/worker-config-dev-server-false/webpack.config.js +++ b/tests/fixtures/worker-config-dev-server-false/webpack.config.js @@ -24,7 +24,7 @@ module.exports = [ experiments: { rspackFuture: { bundlerInfo: { - force: ["version"] + force: false } } } @@ -51,7 +51,7 @@ module.exports = [ experiments: { rspackFuture: { bundlerInfo: { - force: ["version"] + force: false } } }