From 57e1228de5b89b5adce5da83d36ba2fdd89b34f8 Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Wed, 15 May 2024 18:01:32 +0800 Subject: [PATCH] chore: adapted to rspack 0.7 --- packages/core/package.json | 2 +- packages/core/src/client/format.ts | 3 +- packages/core/src/server/devServer.ts | 10 +- packages/core/src/server/getDevMiddlewares.ts | 4 +- packages/core/src/server/middlewares.ts | 20 ++- packages/plugin-react/package.json | 2 +- packages/shared/package.json | 2 +- packages/shared/src/types/rspack.ts | 2 + pnpm-lock.yaml | 167 +++++++++--------- 9 files changed, 109 insertions(+), 103 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index 95ebd5dbe4..dff5aa78cb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -54,7 +54,7 @@ }, "dependencies": { "@rsbuild/shared": "workspace:*", - "@rspack/core": "0.6.5", + "@rspack/core": "0.6.5-canary-2456d69-20240515093621", "@swc/helpers": "0.5.3", "core-js": "~3.36.0", "html-webpack-plugin": "npm:html-rspack-plugin@5.7.2", diff --git a/packages/core/src/client/format.ts b/packages/core/src/client/format.ts index 3123729f92..196285688e 100644 --- a/packages/core/src/client/format.ts +++ b/packages/core/src/client/format.ts @@ -27,8 +27,7 @@ function formatMessage(stats: StatsError | string) { // Stats error object if (typeof stats === 'object') { const fileName = resolveFileName(stats); - const mainMessage = - typeof stats.formatted === 'string' ? stats.formatted : stats.message; + const mainMessage = stats.message; const details = stats.details ? `\nDetails: ${stats.details}\n` : ''; const stack = stats.stack ? `\n${stats.stack}` : ''; diff --git a/packages/core/src/server/devServer.ts b/packages/core/src/server/devServer.ts index d1826b1c36..36e450c3ac 100644 --- a/packages/core/src/server/devServer.ts +++ b/packages/core/src/server/devServer.ts @@ -2,6 +2,7 @@ import fs from 'node:fs'; import { type CreateDevMiddlewareReturns, type CreateDevServerOptions, + type OutputFileSystem, ROOT_DIST_DIR, type RsbuildDevServer, type StartDevServerOptions, @@ -66,7 +67,7 @@ export async function createDevServer< https, }; - let outputFileSystem = fs; + let outputFileSystem: OutputFileSystem = fs; const startCompile: () => Promise< RsbuildDevMiddlewareOptions['compileMiddlewareAPI'] @@ -91,9 +92,10 @@ export async function createDevServer< compilerDevMiddleware.init(); - outputFileSystem = isMultiCompiler(compiler) - ? compiler.compilers[0].outputFileSystem - : compiler.outputFileSystem; + outputFileSystem = + (isMultiCompiler(compiler) + ? compiler.compilers[0].outputFileSystem + : compiler.outputFileSystem) || fs; return { middleware: compilerDevMiddleware.middleware, diff --git a/packages/core/src/server/getDevMiddlewares.ts b/packages/core/src/server/getDevMiddlewares.ts index 9932833dc8..f0c2f3bbe4 100644 --- a/packages/core/src/server/getDevMiddlewares.ts +++ b/packages/core/src/server/getDevMiddlewares.ts @@ -1,10 +1,10 @@ -import type fs from 'node:fs'; import { isAbsolute, join } from 'node:path'; import url from 'node:url'; import type { CompileMiddlewareAPI, DevConfig, Middlewares, + OutputFileSystem, RequestHandler, ServerAPIs, ServerConfig, @@ -22,7 +22,7 @@ export type RsbuildDevMiddlewareOptions = { dev: DevConfig; server: ServerConfig; compileMiddlewareAPI?: CompileMiddlewareAPI; - outputFileSystem: typeof fs; + outputFileSystem: OutputFileSystem; output: { distPath: string; }; diff --git a/packages/core/src/server/middlewares.ts b/packages/core/src/server/middlewares.ts index 9e5bf00a1e..6a40d5a2b2 100644 --- a/packages/core/src/server/middlewares.ts +++ b/packages/core/src/server/middlewares.ts @@ -1,9 +1,9 @@ -import type fs from 'node:fs'; import path from 'node:path'; import { parse } from 'node:url'; import { type HtmlFallback, type RequestHandler as Middleware, + type OutputFileSystem, color, debug, isDebug, @@ -79,12 +79,12 @@ export const getHtmlFallbackMiddleware: (params: { distPath: string; callback?: Middleware; htmlFallback?: HtmlFallback; - outputFileSystem: typeof fs; + outputFileSystem: OutputFileSystem; }) => Middleware = ({ htmlFallback, distPath, callback, outputFileSystem }) => { /** * support access page without suffix and support fallback in some edge cases */ - return (req, res, next) => { + return async (req, res, next) => { if ( // Only accept GET or HEAD (req.method !== 'GET' && req.method !== 'HEAD') || @@ -117,6 +117,14 @@ export const getHtmlFallbackMiddleware: (params: { return next(); } + const isFileExists = async (filePath: string) => { + return new Promise((resolve) => { + outputFileSystem.stat(filePath, (_error, stats) => { + resolve(stats?.isFile()); + }); + }); + }; + const rewrite = (newUrl: string, isFallback = false) => { if (isFallback && isDebug()) { debug( @@ -141,7 +149,7 @@ export const getHtmlFallbackMiddleware: (params: { const newUrl = `${pathname}index.html`; const filePath = path.join(distPath, pathname, 'index.html'); - if (outputFileSystem.existsSync(filePath)) { + if (await isFileExists(filePath)) { return rewrite(newUrl); } } else if ( @@ -151,13 +159,13 @@ export const getHtmlFallbackMiddleware: (params: { const newUrl = `${pathname}.html`; const filePath = path.join(distPath, `${pathname}.html`); - if (outputFileSystem.existsSync(filePath)) { + if (await isFileExists(filePath)) { return rewrite(newUrl); } } if (htmlFallback === 'index') { - if (outputFileSystem.existsSync(path.join(distPath, 'index.html'))) { + if (await isFileExists(path.join(distPath, 'index.html'))) { return rewrite('/index.html', true); } } diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index f7859f5337..8296de04a6 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@rsbuild/shared": "workspace:*", - "@rspack/plugin-react-refresh": "0.6.5", + "@rspack/plugin-react-refresh": "0.6.5-canary-2456d69-20240515093621", "react-refresh": "^0.14.2" }, "devDependencies": { diff --git a/packages/shared/package.json b/packages/shared/package.json index d7d4773053..f1afd6594a 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -120,7 +120,7 @@ "test:watch": "vitest dev --no-coverage" }, "dependencies": { - "@rspack/core": "0.6.5", + "@rspack/core": "0.6.5-canary-2456d69-20240515093621", "caniuse-lite": "^1.0.30001617", "postcss": "^8.4.38" }, diff --git a/packages/shared/src/types/rspack.ts b/packages/shared/src/types/rspack.ts index ed90be226a..5782e6413d 100644 --- a/packages/shared/src/types/rspack.ts +++ b/packages/shared/src/types/rspack.ts @@ -16,6 +16,8 @@ export type RspackMultiCompiler = Rspack.MultiCompiler; /** T[] => T */ type GetElementType = T extends (infer U)[] ? U : never; +export type OutputFileSystem = Rspack.OutputFileSystem; + export type RspackRule = GetElementType< NonNullable['rules']> >; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e531cb91dc..131bd165dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -693,8 +693,8 @@ importers: specifier: workspace:* version: link:../shared '@rspack/core': - specifier: 0.6.5 - version: 0.6.5(@swc/helpers@0.5.3) + specifier: 0.6.5-canary-2456d69-20240515093621 + version: 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -703,7 +703,7 @@ importers: version: 3.36.1 html-webpack-plugin: specifier: npm:html-rspack-plugin@5.7.2 - version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5(@swc/helpers@0.5.3)) + version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)) postcss: specifier: ^8.4.38 version: 8.4.38 @@ -728,7 +728,7 @@ importers: version: 2.0.0 css-loader: specifier: 7.1.1 - version: 7.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(webpack@5.91.0) + version: 7.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(webpack@5.91.0) dotenv: specifier: 16.4.5 version: 16.4.5 @@ -746,7 +746,7 @@ importers: version: 2.6.1 less-loader: specifier: 12.2.0 - version: 12.2.0(@rspack/core@0.6.5(@swc/helpers@0.5.3))(less@4.2.0)(webpack@5.91.0) + version: 12.2.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(less@4.2.0)(webpack@5.91.0) on-finished: specifier: 2.4.1 version: 2.4.1 @@ -758,7 +758,7 @@ importers: version: 5.1.0(jiti@1.21.0)(postcss@8.4.38)(tsx@4.10.1) postcss-loader: specifier: 8.1.1 - version: 8.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0) + version: 8.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0) postcss-value-parser: specifier: 4.2.0 version: 4.2.0 @@ -770,7 +770,7 @@ importers: version: 5.0.0 rspack-manifest-plugin: specifier: 5.0.0 - version: 5.0.0(@rspack/core@0.6.5(@swc/helpers@0.5.3)) + version: 5.0.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)) sirv: specifier: ^2.0.4 version: 2.0.4 @@ -850,7 +850,7 @@ importers: version: 5.0.4 html-webpack-plugin: specifier: npm:html-rspack-plugin@5.7.2 - version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5(@swc/helpers@0.5.3)) + version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)) terser: specifier: 5.31.0 version: 5.31.0 @@ -1187,8 +1187,8 @@ importers: specifier: workspace:* version: link:../shared '@rspack/plugin-react-refresh': - specifier: 0.6.5 - version: 0.6.5(react-refresh@0.14.2) + specifier: 0.6.5-canary-2456d69-20240515093621 + version: 0.6.5-canary-2456d69-20240515093621(react-refresh@0.14.2) react-refresh: specifier: ^0.14.2 version: 0.14.2 @@ -1223,7 +1223,7 @@ importers: version: link:../../scripts/test-helper html-webpack-plugin: specifier: npm:html-rspack-plugin@5.7.2 - version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5(@swc/helpers@0.5.3)) + version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)) postcss-pxtorem: specifier: 6.1.0 version: 6.1.0(postcss@8.4.38) @@ -1313,7 +1313,7 @@ importers: version: 0.63.0 stylus-loader: specifier: 8.1.0 - version: 8.1.0(@rspack/core@0.6.5(@swc/helpers@0.5.3))(stylus@0.63.0)(webpack@5.91.0) + version: 8.1.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(stylus@0.63.0)(webpack@5.91.0) devDependencies: '@rsbuild/core': specifier: link:../core @@ -1535,7 +1535,7 @@ importers: version: link:../shared vue-loader: specifier: ^15.11.1 - version: 15.11.1(@vue/compiler-sfc@3.4.23)(css-loader@7.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(webpack@5.91.0))(lodash@4.17.21)(prettier@3.2.5)(pug@3.0.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(webpack@5.91.0) + version: 15.11.1(@vue/compiler-sfc@3.4.23)(css-loader@7.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(webpack@5.91.0))(lodash@4.17.21)(prettier@3.2.5)(pug@3.0.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(webpack@5.91.0) webpack: specifier: ^5.91.0 version: 5.91.0 @@ -1600,8 +1600,8 @@ importers: packages/shared: dependencies: '@rspack/core': - specifier: 0.6.5 - version: 0.6.5(@swc/helpers@0.5.3) + specifier: 0.6.5-canary-2456d69-20240515093621 + version: 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) caniuse-lite: specifier: ^1.0.30001617 version: 1.0.30001617 @@ -1654,7 +1654,7 @@ importers: version: 6.0.0 html-webpack-plugin: specifier: npm:html-rspack-plugin@5.7.2 - version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5(@swc/helpers@0.5.3)) + version: html-rspack-plugin@5.7.2(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)) http-proxy-middleware: specifier: ^2.0.6 version: 2.0.6 @@ -1708,7 +1708,7 @@ importers: version: 1.77.1 sass-loader: specifier: 14.2.1 - version: 14.2.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(sass@1.77.1)(webpack@5.91.0) + version: 14.2.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(sass@1.77.1)(webpack@5.91.0) semver: specifier: ^7.6.2 version: 7.6.2 @@ -3411,56 +3411,56 @@ packages: cpu: [x64] os: [win32] - '@rspack/binding-darwin-arm64@0.6.5': - resolution: {integrity: sha512-5Zbs3buzF80MZoWnnpm/ZqQ2ZLKWjmmy94gDMeJhG39lKcpK2J2NyDXVis2ZSg7uUvKyJ662BEgIE1AnTWjnYg==} + '@rspack/binding-darwin-arm64@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-axg8rurU0zxw9GxaoEUYcheNlJ8EcbYGpzQRNqRRUY2FdfMUHULNFdNutw3ydKzE2CKdWTCQlvWtXhy8ORu7NQ==} cpu: [arm64] os: [darwin] - '@rspack/binding-darwin-x64@0.6.5': - resolution: {integrity: sha512-oA1R0OF8r7y8+oLynnZC9EgysLoOBuu1yYG90gHmrkdzRjjmYe4auNhuSLLqF+WOqXw/zGSujiUbnVMjLEWIBg==} + '@rspack/binding-darwin-x64@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-DSGyZTZRNHSyPVUPn52O+SWM1xM/VZFfCBweFDzx+lTR6DlNVgnrkMEys4jCavibAKiIszoqA30V2WdP9SwEQw==} cpu: [x64] os: [darwin] - '@rspack/binding-linux-arm64-gnu@0.6.5': - resolution: {integrity: sha512-xK2Ji9yCJSZE5HSRBS7R67HPahYd0WR16NefycrkmIEDR28B2T5CnvbqyNivnu7Coy1haHWisgfTV/NbjLd5fA==} + '@rspack/binding-linux-arm64-gnu@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-J75bQBA98XEhMS6hLSjusuG1MHVIF8A6yMtwk+kfKjuIylNuD+2+R09SlpwK7qMFE4Ic4u1Bn5W0/hjDtF4jFg==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-arm64-musl@0.6.5': - resolution: {integrity: sha512-nPDUf6TkzJWxqi6gQQz+Ypd2BPDiufh0gd0yFExIZyguE93amVbzJEfKeCQdvHZL5W/9XaYJoDKSOuCwMdLhiQ==} + '@rspack/binding-linux-arm64-musl@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-kTlcrPAuIsBO9mS6547wK1lzMkvdZFs7y5ogHjHoVtPiaiiJxDmQLzmGuLdjHc9CiwYNHvq9xa5FqUUpc8tDNw==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-x64-gnu@0.6.5': - resolution: {integrity: sha512-KT4GBPra7ge5oHSblfM74oRgW10MKdKhyJGEKFWqRezzul8i9SHElFzcE/w6qoOOLMgYPoVc/nybRqsJp9koZg==} + '@rspack/binding-linux-x64-gnu@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-wBDFSk3PsNfA795Wi/BaIuQp7BVyc1ULxsGrCGB+S/4AjvsgD34uev5WxwlhoEa+kNR7c7V+SPZ73kduE3wqYw==} cpu: [x64] os: [linux] - '@rspack/binding-linux-x64-musl@0.6.5': - resolution: {integrity: sha512-VnIzpFjzT4vkfUKPqyH4BiHJ6AMqtoeu7tychga2HpSudqCG8no4eIH2qRs9anGeuRkwb9x3uBC/1AIIiWSMsQ==} + '@rspack/binding-linux-x64-musl@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-zcrOw4f86osQy3ff84ZElYHUhsNQ8VVIm/cWm0IeTpAaw1V43uUWDU89MfBpKnclFqXGTeW0+h8QToazHzzMMw==} cpu: [x64] os: [linux] - '@rspack/binding-win32-arm64-msvc@0.6.5': - resolution: {integrity: sha512-V44hlcK7htG1pA/fHCc1XDGmItu7v8qQObssl/yGAn4+ZlvP6/pxPy8y5ZVwnR3NXTRzPezMvbnKGb4GxBphlw==} + '@rspack/binding-win32-arm64-msvc@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-447fRJzrkRluEDdRGxMzNpLo5oC0fZKgCK6CzD5gvdDmElDMCLw0WeQ3STsfV0erH5mmGI/mKpDZiD+c4lLm6w==} cpu: [arm64] os: [win32] - '@rspack/binding-win32-ia32-msvc@0.6.5': - resolution: {integrity: sha512-M4xrJDx5EcAtZ02R9Y4yJB5KVCUdQIbAF/1gDGrXZ5PQUujaNzsIdISUvNfxpfkqe0Shj6SKOTqWm8yte3ecrQ==} + '@rspack/binding-win32-ia32-msvc@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-dOde8WKqjyr1RxAfekZt0CjuBnwBpi8ItsF4KKfaEm/6g53Pg7ofqStZB3QOWyjOsQ5cXfMYJQtCRRiJueCQEw==} cpu: [ia32] os: [win32] - '@rspack/binding-win32-x64-msvc@0.6.5': - resolution: {integrity: sha512-aFcBygJsClx0FozVo7zMp9OUte7MlgyBpQGnS2MZgd0kSnuZTyaUcdRiWKehP5lrPPij/ZWNJbiz5O6VNzpg3w==} + '@rspack/binding-win32-x64-msvc@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-EHGIhae1Ht1J/KcQKKUlCV4ntvKFL1cfL7AC1g4ZTD2GR3w3/crjmBxgIXwX6LiD+rpNFWe3/kZDCg/6fUtNSw==} cpu: [x64] os: [win32] - '@rspack/binding@0.6.5': - resolution: {integrity: sha512-uHg6BYS9Uvs5Nxm0StpRX1eqx3I1SEPFhkCfh+HSbFS8ty11mKHjUZn1lYFxLBFypJ3DHtlTM3RZ4g7tmwohAQ==} + '@rspack/binding@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-g3VW3zGJuDoWc/G7DuJ/0EV8tqrTztmuH4ni0a+CY6mVUKuYgYZbIibdb7w13037gNjqhocIjoS61W+BXkcptg==} - '@rspack/core@0.6.5': - resolution: {integrity: sha512-jm0YKUZQCetccdufBfpkfSHE7BOlirrn0UmXv9C+69g8ikl9Jf4Jfr31meDWX5Z3vwZlpdryA7fUH2cblUXoBw==} + '@rspack/core@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-vOviMRAlcNoPS04zcX3ZR4p8s9Y68+ruMyNF1y/iZETrgik4FzlHWNM76wO3zVTRK3z8wj5xnrLOYvJD6NaciQ==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -3468,8 +3468,8 @@ packages: '@swc/helpers': optional: true - '@rspack/plugin-react-refresh@0.6.5': - resolution: {integrity: sha512-H7V54qtdJvBQXSL209ep3cNoeDk8Ljid7+AGeJIXj5nu3ZIF4TYYDFeiyZtn7xCIgeyiYscuQZ0DKb/qXFYqog==} + '@rspack/plugin-react-refresh@0.6.5-canary-2456d69-20240515093621': + resolution: {integrity: sha512-TNAqd1pQwGJ/h3zMr0VXJ20BXsg8nihqQQB+UT1J6yZvitG+9kl4vHVYHjEyrBA91LgiEpuZG8vhFvvJfA3wLQ==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: @@ -4344,9 +4344,6 @@ packages: caniuse-api@3.0.0: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} - caniuse-lite@1.0.30001616: - resolution: {integrity: sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==} - caniuse-lite@1.0.30001617: resolution: {integrity: sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==} @@ -10611,57 +10608,57 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.17.1': optional: true - '@rspack/binding-darwin-arm64@0.6.5': + '@rspack/binding-darwin-arm64@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-darwin-x64@0.6.5': + '@rspack/binding-darwin-x64@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-linux-arm64-gnu@0.6.5': + '@rspack/binding-linux-arm64-gnu@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-linux-arm64-musl@0.6.5': + '@rspack/binding-linux-arm64-musl@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-linux-x64-gnu@0.6.5': + '@rspack/binding-linux-x64-gnu@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-linux-x64-musl@0.6.5': + '@rspack/binding-linux-x64-musl@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-win32-arm64-msvc@0.6.5': + '@rspack/binding-win32-arm64-msvc@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-win32-ia32-msvc@0.6.5': + '@rspack/binding-win32-ia32-msvc@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding-win32-x64-msvc@0.6.5': + '@rspack/binding-win32-x64-msvc@0.6.5-canary-2456d69-20240515093621': optional: true - '@rspack/binding@0.6.5': + '@rspack/binding@0.6.5-canary-2456d69-20240515093621': optionalDependencies: - '@rspack/binding-darwin-arm64': 0.6.5 - '@rspack/binding-darwin-x64': 0.6.5 - '@rspack/binding-linux-arm64-gnu': 0.6.5 - '@rspack/binding-linux-arm64-musl': 0.6.5 - '@rspack/binding-linux-x64-gnu': 0.6.5 - '@rspack/binding-linux-x64-musl': 0.6.5 - '@rspack/binding-win32-arm64-msvc': 0.6.5 - '@rspack/binding-win32-ia32-msvc': 0.6.5 - '@rspack/binding-win32-x64-msvc': 0.6.5 - - '@rspack/core@0.6.5(@swc/helpers@0.5.3)': + '@rspack/binding-darwin-arm64': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-darwin-x64': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-linux-arm64-gnu': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-linux-arm64-musl': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-linux-x64-gnu': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-linux-x64-musl': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-win32-arm64-msvc': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-win32-ia32-msvc': 0.6.5-canary-2456d69-20240515093621 + '@rspack/binding-win32-x64-msvc': 0.6.5-canary-2456d69-20240515093621 + + '@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)': dependencies: '@module-federation/runtime-tools': 0.1.6 - '@rspack/binding': 0.6.5 - caniuse-lite: 1.0.30001616 + '@rspack/binding': 0.6.5-canary-2456d69-20240515093621 + caniuse-lite: 1.0.30001617 enhanced-resolve: 5.12.0 tapable: 2.2.1 webpack-sources: 3.2.3 optionalDependencies: '@swc/helpers': 0.5.3 - '@rspack/plugin-react-refresh@0.6.5(react-refresh@0.14.2)': + '@rspack/plugin-react-refresh@0.6.5-canary-2456d69-20240515093621(react-refresh@0.14.2)': optionalDependencies: react-refresh: 0.14.2 @@ -11825,8 +11822,6 @@ snapshots: lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 - caniuse-lite@1.0.30001616: {} - caniuse-lite@1.0.30001617: {} ccount@2.0.1: {} @@ -12133,7 +12128,7 @@ snapshots: dependencies: postcss: 8.4.38 - css-loader@7.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(webpack@5.91.0): + css-loader@7.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(webpack@5.91.0): dependencies: icss-utils: 5.1.0(postcss@8.4.38) postcss: 8.4.38 @@ -12144,7 +12139,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.6.2 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) webpack: 5.91.0 css-minimizer-webpack-plugin@5.0.1(lightningcss@1.24.1)(webpack@5.91.0): @@ -13210,9 +13205,9 @@ snapshots: html-escaper@2.0.2: {} - html-rspack-plugin@5.7.2(@rspack/core@0.6.5(@swc/helpers@0.5.3)): + html-rspack-plugin@5.7.2(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)): optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) html-tags@2.0.0: {} @@ -13579,11 +13574,11 @@ snapshots: leac@0.6.0: {} - less-loader@12.2.0(@rspack/core@0.6.5(@swc/helpers@0.5.3))(less@4.2.0)(webpack@5.91.0): + less-loader@12.2.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(less@4.2.0)(webpack@5.91.0): dependencies: less: 4.2.0 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) webpack: 5.91.0 less@4.2.0: @@ -15081,14 +15076,14 @@ snapshots: postcss: 8.4.38 tsx: 4.10.1 - postcss-loader@8.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0): + postcss-loader@8.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(postcss@8.4.38)(typescript@5.4.5)(webpack@5.91.0): dependencies: cosmiconfig: 9.0.0(typescript@5.4.5) jiti: 1.21.0 postcss: 8.4.38 semver: 7.6.2 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) webpack: 5.91.0 transitivePeerDependencies: - typescript @@ -15769,12 +15764,12 @@ snapshots: rslog@1.2.2: {} - rspack-manifest-plugin@5.0.0(@rspack/core@0.6.5(@swc/helpers@0.5.3)): + rspack-manifest-plugin@5.0.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3)): dependencies: tapable: 2.2.1 webpack-sources: 2.3.1 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) rspack-plugin-virtual-module@0.1.12: dependencies: @@ -15817,11 +15812,11 @@ snapshots: mkdirp: 0.5.6 rimraf: 2.7.1 - sass-loader@14.2.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(sass@1.77.1)(webpack@5.91.0): + sass-loader@14.2.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(sass@1.77.1)(webpack@5.91.0): dependencies: neo-async: 2.6.2 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) sass: 1.77.1 webpack: 5.91.0 @@ -16155,13 +16150,13 @@ snapshots: stylis@4.3.2: {} - stylus-loader@8.1.0(@rspack/core@0.6.5(@swc/helpers@0.5.3))(stylus@0.63.0)(webpack@5.91.0): + stylus-loader@8.1.0(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(stylus@0.63.0)(webpack@5.91.0): dependencies: fast-glob: 3.3.2 normalize-path: 3.0.0 stylus: 0.63.0 optionalDependencies: - '@rspack/core': 0.6.5(@swc/helpers@0.5.3) + '@rspack/core': 0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3) webpack: 5.91.0 stylus@0.63.0: @@ -16707,10 +16702,10 @@ snapshots: vue-hot-reload-api@2.3.4: {} - vue-loader@15.11.1(@vue/compiler-sfc@3.4.23)(css-loader@7.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(webpack@5.91.0))(lodash@4.17.21)(prettier@3.2.5)(pug@3.0.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(webpack@5.91.0): + vue-loader@15.11.1(@vue/compiler-sfc@3.4.23)(css-loader@7.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(webpack@5.91.0))(lodash@4.17.21)(prettier@3.2.5)(pug@3.0.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(webpack@5.91.0): dependencies: '@vue/component-compiler-utils': 3.3.0(lodash@4.17.21)(pug@3.0.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - css-loader: 7.1.1(@rspack/core@0.6.5(@swc/helpers@0.5.3))(webpack@5.91.0) + css-loader: 7.1.1(@rspack/core@0.6.5-canary-2456d69-20240515093621(@swc/helpers@0.5.3))(webpack@5.91.0) hash-sum: 1.0.2 loader-utils: 1.4.2 vue-hot-reload-api: 2.3.4