From 2f4fef827f713e9fe279c36153762ea60cb48525 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Tue, 12 Nov 2024 17:08:06 +0800 Subject: [PATCH 1/6] chore(rsbuild-plugin): split setUp function to help extend --- .changeset/angry-spoons-wink.md | 5 + .changeset/spicy-roses-hear.md | 5 + apps/rslib-module/.storybook/main.ts | 2 +- apps/rslib-module/package.json | 2 +- apps/rslib-module/rslib.config.ts | 6 - packages/rsbuild-plugin/src/cli/index.ts | 14 +- packages/storybook-addon/package.json | 3 + packages/storybook-addon/preset.ts | 1 + ...with-module-federation-enhanced-rsbuild.ts | 51 ++-- pnpm-lock.yaml | 249 ++++++++++-------- 10 files changed, 183 insertions(+), 155 deletions(-) create mode 100644 .changeset/angry-spoons-wink.md create mode 100644 .changeset/spicy-roses-hear.md diff --git a/.changeset/angry-spoons-wink.md b/.changeset/angry-spoons-wink.md new file mode 100644 index 00000000000..c2095973b8d --- /dev/null +++ b/.changeset/angry-spoons-wink.md @@ -0,0 +1,5 @@ +--- +'@module-federation/rsbuild-plugin': patch +--- + +chore(rsbuild-plugin): split setUp function to help extend diff --git a/.changeset/spicy-roses-hear.md b/.changeset/spicy-roses-hear.md new file mode 100644 index 00000000000..3d4030fe79f --- /dev/null +++ b/.changeset/spicy-roses-hear.md @@ -0,0 +1,5 @@ +--- +'@module-federation/storybook-addon': patch +--- + +chore: export plugin name diff --git a/apps/rslib-module/.storybook/main.ts b/apps/rslib-module/.storybook/main.ts index d7fc1b53cbf..afbad564a90 100644 --- a/apps/rslib-module/.storybook/main.ts +++ b/apps/rslib-module/.storybook/main.ts @@ -29,7 +29,7 @@ const config: StorybookConfig = { options: { remotes: { 'rslib-module': - 'rslib-module@http://localhost:3001/mf/mf-manifest.json', + 'rslib_provider@http://localhost:3001/mf-manifest.json', }, }, }, diff --git a/apps/rslib-module/package.json b/apps/rslib-module/package.json index 1f962dcabc4..abd0f0883e2 100644 --- a/apps/rslib-module/package.json +++ b/apps/rslib-module/package.json @@ -22,7 +22,7 @@ "@module-federation/rsbuild-plugin": "workspace:*", "@module-federation/storybook-addon": "workspace:*", "@rsbuild/plugin-react": "^1.0.6", - "@rslib/core": "^0.0.18", + "@rslib/core": "^0.1.2", "@types/react": "^18.3.11", "http-server": "^14.1.1", "react": "^18.3.1", diff --git a/apps/rslib-module/rslib.config.ts b/apps/rslib-module/rslib.config.ts index 257275f7360..7485456691e 100644 --- a/apps/rslib-module/rslib.config.ts +++ b/apps/rslib-module/rslib.config.ts @@ -35,13 +35,7 @@ export default defineConfig({ distPath: { root: './dist/mf', }, - assetPrefix: 'http://localhost:3000/mf', - minify: true, }, - dev: { - assetPrefix: 'http://localhost:3001/mf', - }, - // just for dev server: { port: 3001, }, diff --git a/packages/rsbuild-plugin/src/cli/index.ts b/packages/rsbuild-plugin/src/cli/index.ts index 8c4ec2393bd..82b96858d3f 100644 --- a/packages/rsbuild-plugin/src/cli/index.ts +++ b/packages/rsbuild-plugin/src/cli/index.ts @@ -15,11 +15,19 @@ import logger from '../logger'; type ModuleFederationOptions = moduleFederationPlugin.ModuleFederationPluginOptions; -const PLUGIN_MODULE_FEDERATION_NAME = 'rsbuild:module-federation-enhanced'; +const RSBUILD_PLUGIN_MODULE_FEDERATION_NAME = + 'rsbuild:module-federation-enhanced'; +const RSPACK_PLUGIN_MODULE_FEDERATION_NAME = 'module-federation'; + +export { + RSBUILD_PLUGIN_MODULE_FEDERATION_NAME, + RSPACK_PLUGIN_MODULE_FEDERATION_NAME, +}; + export const pluginModuleFederation = ( moduleFederationOptions: ModuleFederationOptions, ): RsbuildPlugin => ({ - name: PLUGIN_MODULE_FEDERATION_NAME, + name: RSBUILD_PLUGIN_MODULE_FEDERATION_NAME, setup: (api) => { const sharedOptions: [string, sharePlugin.SharedConfig][] = parseOptions( moduleFederationOptions.shared || [], @@ -153,7 +161,7 @@ export const pluginModuleFederation = ( api.modifyBundlerChain(async (chain) => { chain - .plugin('module-federation') + .plugin(RSPACK_PLUGIN_MODULE_FEDERATION_NAME) .use(ModuleFederationPlugin, [moduleFederationOptions]); // `uniqueName` is required for react refresh to work diff --git a/packages/storybook-addon/package.json b/packages/storybook-addon/package.json index 4398edac303..5dee14878f6 100644 --- a/packages/storybook-addon/package.json +++ b/packages/storybook-addon/package.json @@ -44,6 +44,9 @@ "*": { ".": [ "./dist/index.d.ts" + ], + "preset": [ + "./dist/preset.d.ts" ] } }, diff --git a/packages/storybook-addon/preset.ts b/packages/storybook-addon/preset.ts index 0ef92908f91..2047d71718e 100644 --- a/packages/storybook-addon/preset.ts +++ b/packages/storybook-addon/preset.ts @@ -18,3 +18,4 @@ export default { }); }, }; +export { PLUGIN_NAME } from './src/utils/with-module-federation-enhanced-rsbuild'; diff --git a/packages/storybook-addon/src/utils/with-module-federation-enhanced-rsbuild.ts b/packages/storybook-addon/src/utils/with-module-federation-enhanced-rsbuild.ts index 9b6fdd86e6d..da69ff78da4 100644 --- a/packages/storybook-addon/src/utils/with-module-federation-enhanced-rsbuild.ts +++ b/packages/storybook-addon/src/utils/with-module-federation-enhanced-rsbuild.ts @@ -9,6 +9,7 @@ import type { RsbuildConfig, RsbuildPlugin } from '@rsbuild/core'; import type { moduleFederationPlugin } from '@module-federation/sdk'; const tempDirPath = path.resolve(process.cwd(), `node_modules/${TEMP_DIR}`); +export const PLUGIN_NAME = 'module-federation-storybook-addon'; // add bootstrap for host project const bootstrapPath = path.resolve( process.cwd(), @@ -27,7 +28,7 @@ const writeBootstrap = (context: string, entryPath: string) => { } fs.writeFileSync(bootstrapPath, generateBootstrap(context, entryPath)); }; -export const withModuleFederation = async ( +export const withModuleFederation = ( rsbuildConfig: RsbuildConfig, options: moduleFederationPlugin.ModuleFederationPluginOptions, ) => { @@ -52,36 +53,30 @@ export const withModuleFederation = async ( // remoteEntry already includes one hmr runtime, and an additional one is not necessary. hmr: false, }, - tools: { - rspack: (config) => { - config.output ??= {}; - config.output.chunkLoadingGlobal = - 'module-federation-storybook-addon'; - config.plugins?.push( - new ModuleFederationPlugin({ - name: options.name || 'module-federation-storybook-addon', - shared: { - react: { - singleton: true, - }, - 'react-dom': { - singleton: true, - }, - ...options.shared, - }, - remotes: { - ...options.remotes, - }, - shareStrategy: options.shareStrategy, - }), - ); - return config; - }, - }, }; - return mergeRsbuildConfig(config, mfConfig); }); + + api.modifyBundlerChain(async (chain) => { + chain.plugin(PLUGIN_NAME).use(ModuleFederationPlugin, [ + { + name: options.name || PLUGIN_NAME, + shared: { + react: { + singleton: true, + }, + 'react-dom': { + singleton: true, + }, + ...options.shared, + }, + remotes: { + ...options.remotes, + }, + shareStrategy: options.shareStrategy, + }, + ]); + }); }, }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6bdc83434b3..8db41550573 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1620,8 +1620,8 @@ importers: specifier: ^1.0.6 version: 1.0.6(@rsbuild/core@1.1.1) '@rslib/core': - specifier: ^0.0.18 - version: 0.0.18(typescript@5.5.2) + specifier: ^0.1.2 + version: 0.1.2(typescript@5.5.2) '@types/react': specifier: ^18.3.11 version: 18.3.11 @@ -1639,7 +1639,7 @@ importers: version: 8.4.2(prettier@3.3.3) storybook-addon-rslib: specifier: ^0.1.4 - version: 0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.0.18)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) + version: 0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.1.2)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) storybook-react-rsbuild: specifier: ^0.1.5 version: 0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0) @@ -15253,7 +15253,7 @@ packages: engines: {node: '>=16.7.0'} hasBin: true dependencies: - '@rspack/core': 1.0.10(@swc/helpers@0.5.13) + '@rspack/core': 1.0.14(@swc/helpers@0.5.13) '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.13 caniuse-lite: 1.0.30001668 @@ -15287,6 +15287,17 @@ packages: fsevents: 2.3.3 dev: true + /@rsbuild/core@1.1.7: + resolution: {integrity: sha512-YI8qGKa37e5X3av4cB4i06MZv89URW39SrfNqTR6Td7VPznX+n4pHcrYqj86sEM2/XPX57/UL9Hi/Nhu+A003g==} + engines: {node: '>=16.7.0'} + hasBin: true + dependencies: + '@rspack/core': 1.1.5(@swc/helpers@0.5.15) + '@rspack/lite-tapable': 1.0.1 + '@swc/helpers': 0.5.15 + core-js: 3.39.0 + dev: true + /@rsbuild/plugin-assets-retry@1.0.2(@rsbuild/core@1.0.19): resolution: {integrity: sha512-vlQwCFibONxquQmQwDDv/crivmXAct8nsUtSovlgoMHE4UUQKFZbJ7jr54FVXvDlyL/Wp9yvOj4WhAEabBEVlA==} peerDependencies: @@ -15846,8 +15857,8 @@ packages: - webpack-cli dev: true - /@rslib/core@0.0.18(typescript@5.5.2): - resolution: {integrity: sha512-TN3WOgpX5FvHDA5oWm/5vG+sQQhzkUiHx0YjgEQHA0IiRUJNwaqDvSyRyQkBqWrQw5o6WpVet9kM/P6+rm4RSw==} + /@rslib/core@0.1.2(typescript@5.5.2): + resolution: {integrity: sha512-gHn0n/0JdHSE1fiut52cMjKXcvP3WQBVnTlKyzJ4u7Z1BMyEQGw/vloAskZdnZ1mMl74oyzGPx1xrXdFsf43Aw==} engines: {node: '>=16.0.0'} hasBin: true peerDependencies: @@ -15859,8 +15870,8 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.1 - rsbuild-plugin-dts: 0.0.18(@rsbuild/core@1.1.1)(typescript@5.5.2) + '@rsbuild/core': 1.1.7 + rsbuild-plugin-dts: 0.1.2(@rsbuild/core@1.1.7)(typescript@5.5.2) tinyglobby: 0.2.10 typescript: 5.5.2 dev: true @@ -15889,14 +15900,6 @@ packages: dev: true optional: true - /@rspack/binding-darwin-arm64@1.0.10: - resolution: {integrity: sha512-byQuC3VSEHJxjcjdgOvEPPkteA7d/kKYGUTZjsAMsIriioCVkB+4OYfnQmnav8M0An9vBM34H2+IKqO1ge1+Aw==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-darwin-arm64@1.0.14: resolution: {integrity: sha512-dHvlF6T6ctThGDIdvkSdacroA1xlCxfteuppBj8BX/UxzLPr4xsaEtNilfJmFfd2/J02UQyTQauN/9EBuA+YkA==} cpu: [arm64] @@ -15919,6 +15922,14 @@ packages: dev: true optional: true + /@rspack/binding-darwin-arm64@1.1.5: + resolution: {integrity: sha512-eEynmyPPl+OGYQ9LRFwiQosyRfcca3OQB73akqY4mqDRl39OyiBjq7347DLHJysgbm9z+B1bsiLuh2xc6mdclQ==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-darwin-x64@0.5.0: resolution: {integrity: sha512-d6SvBURfKow3WcKxTrjJPBkp+NLsuCPoIMaS8/bM4gHwgjVs2zuOsTQ9+l36dypOkjnu6QLkOIykTdiUKJ0eQg==} cpu: [x64] @@ -15943,14 +15954,6 @@ packages: dev: true optional: true - /@rspack/binding-darwin-x64@1.0.10: - resolution: {integrity: sha512-L5dGmELiDDXAW3+yN11fwDbl8S9i7dwOvzygN/Iw+Md2WAODrFnTI/g++hOfdZzjUPtefyQUqoAcFOgpdxWSCQ==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-darwin-x64@1.0.14: resolution: {integrity: sha512-q4Da1Bn/4xTLhhnOkT+fjP2STsSCfp4z03/J/h8tCVG/UYz56Ud3q1UEOK33c5Fxw1C4GlhEh5yYOlSAdxFQLQ==} cpu: [x64] @@ -15973,6 +15976,14 @@ packages: dev: true optional: true + /@rspack/binding-darwin-x64@1.1.5: + resolution: {integrity: sha512-I6HPRgogewU5v1OKe3noEzq2U1FCEYAbW+smy+lPvpTW+3X6PlVMzTT4oelhB0EXDQ+KxjXH9KpOKON1hg/JGg==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-arm64-gnu@0.5.0: resolution: {integrity: sha512-97xFbF7RjJc2VvX+0Hvb7Jzsk+eEE8oEUcc5Dnb7OIwGZulWKk6cLNcRkNfmL/F9kk1QEKlUTNC/VQI7ljf2tA==} cpu: [arm64] @@ -15997,14 +16008,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-arm64-gnu@1.0.10: - resolution: {integrity: sha512-s+0AIGQQ2Npz3RcDQAFOLc4KYAZZ1g4oWxm2Ug7RSecwy7edK1uUDYE+boofEMgZ9+O3G5O+sXQr+SAyidS5EA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-arm64-gnu@1.0.14: resolution: {integrity: sha512-JogYtL3VQS9wJ3p3FNhDqinm7avrMsdwz4erP7YCjD7idob93GYAE7dPrHUzSNVnCBYXRaHJYZHDQs7lKVcYZw==} cpu: [arm64] @@ -16027,32 +16030,32 @@ packages: dev: true optional: true - /@rspack/binding-linux-arm64-musl@0.5.0: - resolution: {integrity: sha512-lk0IomCy276EoynmksoBwg0IcHvvVXuZPMeq7OgRPTvs33mdTExSzSTPtrGzx/D00bX1ybUqLQwJhcgGt6erPQ==} + /@rspack/binding-linux-arm64-gnu@1.1.5: + resolution: {integrity: sha512-LQnqucNa6Dr6y3By+/M2ARO4jDR3AM+PuCsHgzlYT0RDRLS+Ow3f50WbNBf7eI/DhrEA0aucYL3sz1ljguB3EA==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-arm64-musl@0.5.3: - resolution: {integrity: sha512-IBfVGpycRrLbyCWzokzeFIfK+yII68w1WOx2iCoR+tPUKa3M7WAZjrbVB33PHxGKXeF+xX7Lzm50hi4uTK8L6g==} + /@rspack/binding-linux-arm64-musl@0.5.0: + resolution: {integrity: sha512-lk0IomCy276EoynmksoBwg0IcHvvVXuZPMeq7OgRPTvs33mdTExSzSTPtrGzx/D00bX1ybUqLQwJhcgGt6erPQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-arm64-musl@0.7.5: - resolution: {integrity: sha512-6RcxG42mLM01Pa6UYycACu/Nu9qusghAPUJumb8b8x5TRIDEtklYC5Ck6Rmagm+8E0ucMude2E/D4rMdIFcS3A==} + /@rspack/binding-linux-arm64-musl@0.5.3: + resolution: {integrity: sha512-IBfVGpycRrLbyCWzokzeFIfK+yII68w1WOx2iCoR+tPUKa3M7WAZjrbVB33PHxGKXeF+xX7Lzm50hi4uTK8L6g==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-arm64-musl@1.0.10: - resolution: {integrity: sha512-KSPLOHcUC+8zA134RTCqo5bDqmX4ZwFz4LL+n/5i9yugHoiQVplEzh2TkFCVoAH85Xc40qPhxqGLJlhHh5qGEA==} + /@rspack/binding-linux-arm64-musl@0.7.5: + resolution: {integrity: sha512-6RcxG42mLM01Pa6UYycACu/Nu9qusghAPUJumb8b8x5TRIDEtklYC5Ck6Rmagm+8E0ucMude2E/D4rMdIFcS3A==} cpu: [arm64] os: [linux] requiresBuild: true @@ -16081,6 +16084,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-arm64-musl@1.1.5: + resolution: {integrity: sha512-b9L/9HJxrWY4cezPWqgj28I9Xe2XxwLHu8x0CMGobwF2XKR0QQVLAst38RW/EusJ8TURdyvNEOuRZlWEIJuYOw==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-x64-gnu@0.5.0: resolution: {integrity: sha512-r15ddpse0S/8wHtfL85uJrVotvPVIMnQX06KlXyGUSw1jWrjxV+NXFDJ4xXnHCvk/YV6lCFTotAssk4wJEE0Fw==} cpu: [x64] @@ -16105,14 +16116,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-x64-gnu@1.0.10: - resolution: {integrity: sha512-hiMIowGEUODn0LxV/Kc/oxHDXXSgu9BgPVZNprRTEZs3E7hHP4FX+YlzKafZ9G6qSY51GkiEDyEOb5X4Pq/eTw==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-x64-gnu@1.0.14: resolution: {integrity: sha512-5vzaDRw3/sGKo3ax/1cU3/cxqNjajwlt2LU288vXNe1/n8oe/pcDfYcTugpOe/A1DqzadanudJszLpFcKsaFtQ==} cpu: [x64] @@ -16135,32 +16138,32 @@ packages: dev: true optional: true - /@rspack/binding-linux-x64-musl@0.5.0: - resolution: {integrity: sha512-lB9Dn1bi4xyzEe6Bf/GQ7Ktlrq4Kmt1LHwN+t0m6iVYH3Vb/3g8uQGDSkwnjP8NmlAtldK1cmvRMhR7flUrgZA==} + /@rspack/binding-linux-x64-gnu@1.1.5: + resolution: {integrity: sha512-0az52ZXTg/ErCGC1v/oFLWByKAiXvng4euv+prwMWF6p1pA7lfLRLzdibDFO4KgC16Zlfcg3hqs7YikLng4x+w==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-x64-musl@0.5.3: - resolution: {integrity: sha512-PZbmHZ/sFBC0W2vNNmMgeVORijAxhdkaU0QS95ltacO+bU8npcNb+01QgRzJovuhOfiT7HXDUmH7K0mrUqXpFg==} + /@rspack/binding-linux-x64-musl@0.5.0: + resolution: {integrity: sha512-lB9Dn1bi4xyzEe6Bf/GQ7Ktlrq4Kmt1LHwN+t0m6iVYH3Vb/3g8uQGDSkwnjP8NmlAtldK1cmvRMhR7flUrgZA==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-x64-musl@0.7.5: - resolution: {integrity: sha512-dDgi/ThikMy1m4llxPeEXDCA2I8F8ezFS/eCPLZGU2/J1b4ALwDjuRsMmo+VXSlFCKgIt98V6h1woeg7nu96yg==} + /@rspack/binding-linux-x64-musl@0.5.3: + resolution: {integrity: sha512-PZbmHZ/sFBC0W2vNNmMgeVORijAxhdkaU0QS95ltacO+bU8npcNb+01QgRzJovuhOfiT7HXDUmH7K0mrUqXpFg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rspack/binding-linux-x64-musl@1.0.10: - resolution: {integrity: sha512-OKb1PLOIulkg83zFyeFPowIzF7WdYVO6yRK7l+Kkick/cvALOj5XzRHyxrsb8VfJMpzHrPwsLV0RcGRT18BPMw==} + /@rspack/binding-linux-x64-musl@0.7.5: + resolution: {integrity: sha512-dDgi/ThikMy1m4llxPeEXDCA2I8F8ezFS/eCPLZGU2/J1b4ALwDjuRsMmo+VXSlFCKgIt98V6h1woeg7nu96yg==} cpu: [x64] os: [linux] requiresBuild: true @@ -16189,6 +16192,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-x64-musl@1.1.5: + resolution: {integrity: sha512-EF/LJTtCTkuti2gJnCyvXHC5Q2L5M4+RXm5kj9Bfu/t0Zmmfe6Jd5QUsifgogioeL0ZsH/Pou5QiiVcOFcqFKQ==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-arm64-msvc@0.5.0: resolution: {integrity: sha512-aDoF13puU8LxST/qKZndtXzlJbnbnxY2Bxyj0fu7UDh8nHJD4A2HQfWRN6BZFHaVSqM6Bnli410dJrIWeTNhZQ==} cpu: [arm64] @@ -16213,14 +16224,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-arm64-msvc@1.0.10: - resolution: {integrity: sha512-J2fCPYgiPyLo4pGZMHT72lGHK05puBYJzpCR8CmVCk+ktkhVcao9cA2BUT3Gr3UG2PPxfBFsDDmjA/FsUEdxrg==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-arm64-msvc@1.0.14: resolution: {integrity: sha512-SjeYw7qqRHYZ5RPClu+ffKZsShQdU3amA1OwC3M0AS6dbfEcji8482St3Y8Z+QSzYRapCEZij9LMM/9ypEhISg==} cpu: [arm64] @@ -16243,6 +16246,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-arm64-msvc@1.1.5: + resolution: {integrity: sha512-VEqhK6HwIHby6gtOkxIx66SkqYndiaP1ddZ3X39RLE40TY3KlNgfG/SzbN9J5Qb+8jjq3ogV8n50+wLEGkhiWw==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-ia32-msvc@0.5.0: resolution: {integrity: sha512-EYGeH4YKX5v4gtTL8mBAWnsKSkF+clsKu0z1hgWgSV/vnntNlqJQZUCb5CMdg5VqadNm+lUNDYYHeHNa3+Jp3w==} cpu: [ia32] @@ -16267,14 +16278,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-ia32-msvc@1.0.10: - resolution: {integrity: sha512-DQeGQgFS3jv+krfvp9dAKubGbY98nmsmf3ZeobyAnvq+AFDoVyOKImGp/GvZoCTr6jToFoz9+pPYbQyf15lw+g==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-ia32-msvc@1.0.14: resolution: {integrity: sha512-m1gUiVyz3Z3VYIK/Ayo5CVHBjnEeRk9a+KIpKSsq1yhZItnMgjtr4bKabU9vjxalO4UoaSmVzODJI8lJBlnn5Q==} cpu: [ia32] @@ -16297,6 +16300,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-ia32-msvc@1.1.5: + resolution: {integrity: sha512-Yi2BwYehc5/sRVgI7zTGYJKjnV8UszAJt/stWdFHaq82chHiuuF/tQd1WcBUq0Iin9ylBMo16mRJAuFkFmJ74Q==} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-x64-msvc@0.5.0: resolution: {integrity: sha512-RCECFW6otUrFiPbWQyOvLZOMNV/OL6AyAKMDbX9ejjk0TjLMrHjnhmI5X8EoA/SUc1/vEbgsJzDVLKTfn138cg==} cpu: [x64] @@ -16321,14 +16332,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-x64-msvc@1.0.10: - resolution: {integrity: sha512-1ad9SONsqp6XXxrCHsClnThW7BOrK5PWWslY+J3G0sHsXztSz/s9/CDRXUyJ8vuolpIy10E1Kyk1aV9y+IMs+g==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-x64-msvc@1.0.14: resolution: {integrity: sha512-Gbeg+bayMF9VP9xmlxySL/TC2XrS6/LZM/pqcNOTLHx6LMG/VXCcmKB0rOZo8MzLXEt8D/lQmQ/B6g7pSaAw0g==} cpu: [x64] @@ -16351,6 +16354,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-x64-msvc@1.1.5: + resolution: {integrity: sha512-4UArXYqJO1Ni7TmCw1T11JnrwfpoThDdiQ9k1P1voBWK3bDahPEBOptk9ZPu2+ZuRX8hFrvumRKkLY3oy7fTMw==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding@0.5.0: resolution: {integrity: sha512-+v1elZMn6lKBqbXQzhcfeCaPzztFNGEkNDEcQ7weako6yQPsBihGCRzveMMzZkja4RyB9GRHjWRE+THm8V8+3w==} optionalDependencies: @@ -16393,20 +16404,6 @@ packages: '@rspack/binding-win32-x64-msvc': 0.7.5 dev: true - /@rspack/binding@1.0.10: - resolution: {integrity: sha512-ILWPqLl0fS3a76OwQH6SlVIJBST39sc55yp0zwt484sb77khm0JGvJRElCdPuwgaR7JRDdqK23EvW0XIQAvY7A==} - optionalDependencies: - '@rspack/binding-darwin-arm64': 1.0.10 - '@rspack/binding-darwin-x64': 1.0.10 - '@rspack/binding-linux-arm64-gnu': 1.0.10 - '@rspack/binding-linux-arm64-musl': 1.0.10 - '@rspack/binding-linux-x64-gnu': 1.0.10 - '@rspack/binding-linux-x64-musl': 1.0.10 - '@rspack/binding-win32-arm64-msvc': 1.0.10 - '@rspack/binding-win32-ia32-msvc': 1.0.10 - '@rspack/binding-win32-x64-msvc': 1.0.10 - dev: true - /@rspack/binding@1.0.14: resolution: {integrity: sha512-0wWqFvr9hkF4LgNPgWfkTU0hhkZAMvOytoCs2p+wDX1Up1E/SgJ1U1JAsCxsl1XtUKm7mRvdWHzJmHbza3y89Q==} optionalDependencies: @@ -16447,6 +16444,20 @@ packages: '@rspack/binding-win32-x64-msvc': 1.1.1 dev: true + /@rspack/binding@1.1.5: + resolution: {integrity: sha512-RsSkgi56Q5XUXut0qweLSE1C4Ogcm7g/ueKoOgsbHAYVKrCs9/dTFlPHWSIAaI7QWh0GWEePR/MM2O2HIu+1rw==} + optionalDependencies: + '@rspack/binding-darwin-arm64': 1.1.5 + '@rspack/binding-darwin-x64': 1.1.5 + '@rspack/binding-linux-arm64-gnu': 1.1.5 + '@rspack/binding-linux-arm64-musl': 1.1.5 + '@rspack/binding-linux-x64-gnu': 1.1.5 + '@rspack/binding-linux-x64-musl': 1.1.5 + '@rspack/binding-win32-arm64-msvc': 1.1.5 + '@rspack/binding-win32-ia32-msvc': 1.1.5 + '@rspack/binding-win32-x64-msvc': 1.1.5 + dev: true + /@rspack/core@0.5.0(@swc/helpers@0.5.3): resolution: {integrity: sha512-/Bpujdtx28qYir7AK9VVSbY35GBFEcZ1NTJZBx/WIzZGZWLCxhlVYfjH8cj44y4RvXa0Y26tnj/q7VJ4U3sHug==} engines: {node: '>=16.0.0'} @@ -16532,22 +16543,6 @@ packages: webpack-sources: 3.2.3 dev: true - /@rspack/core@1.0.10(@swc/helpers@0.5.13): - resolution: {integrity: sha512-Jvj6mzf/aFN3c2E+Lu+3dSz6df2pd79/XOLN9ElA7PIjVua4lVt+dUtrTXqVgoAjaKhZJrIt2WXALYdmv4kkVA==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@swc/helpers': '>=0.5.1' - peerDependenciesMeta: - '@swc/helpers': - optional: true - dependencies: - '@module-federation/runtime-tools': 0.5.1 - '@rspack/binding': 1.0.10 - '@rspack/lite-tapable': 1.0.1 - '@swc/helpers': 0.5.13 - caniuse-lite: 1.0.30001668 - dev: true - /@rspack/core@1.0.14(@swc/helpers@0.5.13): resolution: {integrity: sha512-xHl23lxJZNjItGc5YuE9alz3yjb56y7EgJmAcBMPHMqgjtUt8rBu4xd/cSUjbr9/lLF9N4hdyoJiPJOFs9LEjw==} engines: {node: '>=16.0.0'} @@ -16610,6 +16605,22 @@ packages: caniuse-lite: 1.0.30001668 dev: true + /@rspack/core@1.1.5(@swc/helpers@0.5.15): + resolution: {integrity: sha512-/FmxDeMuW8fJkhz8fHuCu7OiJHFKW78xclEu7LkEujWl4PqJgdWjUL/6FWIj50spRwj6PRfuc31hFSL4hbNfCA==} + engines: {node: '>=16.0.0'} + peerDependencies: + '@swc/helpers': '>=0.5.1' + peerDependenciesMeta: + '@swc/helpers': + optional: true + dependencies: + '@module-federation/runtime-tools': 0.5.1 + '@rspack/binding': 1.1.5 + '@rspack/lite-tapable': 1.0.1 + '@swc/helpers': 0.5.15 + caniuse-lite: 1.0.30001668 + dev: true + /@rspack/dev-server@1.0.9(@rspack/core@1.0.8)(@types/express@4.17.21)(webpack@5.93.0): resolution: {integrity: sha512-VF+apLFfl5LWIhVbfkJ5ccU0Atl5mi+sGTkx+XtE1tbUmMJkde0nm/4+eaQCud7oGl+ZCzt4kW14uuzLSiEGDw==} peerDependencies: @@ -32265,6 +32276,12 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 + /magic-string@0.30.14: + resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==} + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + dev: true + /magicast@0.3.5: resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==} dependencies: @@ -38900,8 +38917,8 @@ packages: resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} dev: true - /rsbuild-plugin-dts@0.0.18(@rsbuild/core@1.1.1)(typescript@5.5.2): - resolution: {integrity: sha512-svOrOUi3INkEEhUShMtUBqpBKNdco6qY8BmvO7wAHzU736p3bemlf79ubxDpWFR1WbML9ahv6MqrIQunu3aDNg==} + /rsbuild-plugin-dts@0.1.2(@rsbuild/core@1.1.7)(typescript@5.5.2): + resolution: {integrity: sha512-dktQXqnrldvBnXaBaquy/ZX4HvvDMaNMX8vXHKlIhmbXIVSK+PtkgVTAeBJX2f++hWj2aSxyTbpz6Va7PoawEA==} engines: {node: '>=16.0.0'} peerDependencies: '@microsoft/api-extractor': ^7 @@ -38913,8 +38930,8 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.1 - magic-string: 0.30.12 + '@rsbuild/core': 1.1.7 + magic-string: 0.30.14 picocolors: 1.1.1 tinyglobby: 0.2.10 typescript: 5.5.2 @@ -40333,7 +40350,7 @@ packages: dependencies: graceful-fs: 4.2.11 - /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.0.18)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): + /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.1.2)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): resolution: {integrity: sha512-JXF2OZb3NXE7iYztLxiOTMP1j2BGHSNhREu+5LCjsOXxXFXiJrh4T8OeVLKsg7FlBSfnTkALSra0vHHnerFlfA==} engines: {node: '>=18.0.0'} peerDependencies: @@ -40346,7 +40363,7 @@ packages: optional: true dependencies: '@rsbuild/core': 1.1.1 - '@rslib/core': 0.0.18(typescript@5.5.2) + '@rslib/core': 0.1.2(typescript@5.5.2) storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) typescript: 5.5.2 dev: true From f9f5c25b441783fe6890ed584542ddde1d2bdc37 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Tue, 24 Dec 2024 16:49:34 +0800 Subject: [PATCH 2/6] chore: hoist plugin to global --- apps/rslib-module/package.json | 3 +- apps/rslib-module/rslib.config.ts | 34 +- packages/enhanced/src/index.ts | 5 +- packages/enhanced/src/rspack.ts | 5 +- packages/enhanced/src/webpack.ts | 7 +- .../src/wrapper/ModuleFederationPlugin.ts | 2 +- packages/modernjs/package.json | 1 + packages/modernjs/src/cli/utils.ts | 29 +- packages/rsbuild-plugin/package.json | 12 +- packages/rsbuild-plugin/rollup.config.js | 1 + packages/rsbuild-plugin/src/cli/index.ts | 184 +++--- .../utils/autoDeleteSplitChunkCacheGroups.ts | 62 ++ packages/rsbuild-plugin/src/utils/index.ts | 1 + packages/rspack/src/ModuleFederationPlugin.ts | 3 +- packages/rspack/src/index.ts | 2 +- pnpm-lock.yaml | 585 +++++++++++------- 16 files changed, 556 insertions(+), 380 deletions(-) create mode 100644 packages/rsbuild-plugin/src/utils/autoDeleteSplitChunkCacheGroups.ts diff --git a/apps/rslib-module/package.json b/apps/rslib-module/package.json index abd0f0883e2..d3d569f2645 100644 --- a/apps/rslib-module/package.json +++ b/apps/rslib-module/package.json @@ -14,6 +14,7 @@ "scripts": { "build": "rslib build", "dev": "rslib mf dev", + "build:watch": "rslib build --watch", "serve": "pnpm build && http-server -p 3001 ./dist/ --cors", "storybook": "storybook dev -p 6006" }, @@ -22,7 +23,7 @@ "@module-federation/rsbuild-plugin": "workspace:*", "@module-federation/storybook-addon": "workspace:*", "@rsbuild/plugin-react": "^1.0.6", - "@rslib/core": "^0.1.2", + "@rslib/core": "^0.1.5", "@types/react": "^18.3.11", "http-server": "^14.1.1", "react": "^18.3.1", diff --git a/apps/rslib-module/rslib.config.ts b/apps/rslib-module/rslib.config.ts index 7485456691e..dd3763fa44b 100644 --- a/apps/rslib-module/rslib.config.ts +++ b/apps/rslib-module/rslib.config.ts @@ -39,23 +39,23 @@ export default defineConfig({ server: { port: 3001, }, - plugins: [ - pluginModuleFederation({ - name: 'rslib_provider', - exposes: { - '.': './src/index.tsx', - }, - shared: { - react: { - singleton: true, - }, - 'react-dom': { - singleton: true, - }, - }, - }), - ], }, ], - plugins: [pluginReact()], + plugins: [ + pluginReact(), + pluginModuleFederation({ + name: 'rslib_provider', + exposes: { + '.': './src/index.tsx', + }, + shared: { + react: { + singleton: true, + }, + 'react-dom': { + singleton: true, + }, + }, + }), + ], }); diff --git a/packages/enhanced/src/index.ts b/packages/enhanced/src/index.ts index ada5b552af3..b383f748dc0 100644 --- a/packages/enhanced/src/index.ts +++ b/packages/enhanced/src/index.ts @@ -1,5 +1,8 @@ import type { moduleFederationPlugin } from '@module-federation/sdk'; -export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin'; +export { + default as ModuleFederationPlugin, + PLUGIN_NAME, +} from './wrapper/ModuleFederationPlugin'; export { default as ContainerReferencePlugin } from './wrapper/ContainerReferencePlugin'; export { default as SharePlugin } from './wrapper/SharePlugin'; export { default as ContainerPlugin } from './wrapper/ContainerPlugin'; diff --git a/packages/enhanced/src/rspack.ts b/packages/enhanced/src/rspack.ts index 98e64b3906f..59230e0eaef 100644 --- a/packages/enhanced/src/rspack.ts +++ b/packages/enhanced/src/rspack.ts @@ -1 +1,4 @@ -export { ModuleFederationPlugin } from '@module-federation/rspack/plugin'; +export { + ModuleFederationPlugin, + PLUGIN_NAME, +} from '@module-federation/rspack/plugin'; diff --git a/packages/enhanced/src/webpack.ts b/packages/enhanced/src/webpack.ts index 68fd90fae49..a4345614839 100644 --- a/packages/enhanced/src/webpack.ts +++ b/packages/enhanced/src/webpack.ts @@ -1,3 +1,6 @@ -import { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin'; +import { + default as ModuleFederationPlugin, + PLUGIN_NAME, +} from './wrapper/ModuleFederationPlugin'; -export { ModuleFederationPlugin }; +export { ModuleFederationPlugin, PLUGIN_NAME }; diff --git a/packages/enhanced/src/wrapper/ModuleFederationPlugin.ts b/packages/enhanced/src/wrapper/ModuleFederationPlugin.ts index b9496f05f04..36339a41e2b 100644 --- a/packages/enhanced/src/wrapper/ModuleFederationPlugin.ts +++ b/packages/enhanced/src/wrapper/ModuleFederationPlugin.ts @@ -13,7 +13,7 @@ import path from 'node:path'; import fs from 'node:fs'; import ReactBridgePlugin from '@module-federation/bridge-react-webpack-plugin'; -const PLUGIN_NAME = 'ModuleFederationPlugin'; +export const PLUGIN_NAME = 'ModuleFederationPlugin'; export default class ModuleFederationPlugin implements WebpackPluginInstance { private _options: moduleFederationPlugin.ModuleFederationPluginOptions; diff --git a/packages/modernjs/package.json b/packages/modernjs/package.json index 322dfd15000..7ed5b3aa0ef 100644 --- a/packages/modernjs/package.json +++ b/packages/modernjs/package.json @@ -88,6 +88,7 @@ "license": "MIT", "dependencies": { "@modern-js/node-bundle-require": "2.60.6", + "@module-federation/rsbuild-plugin": "workspace:*", "@modern-js/utils": "2.60.6", "@module-federation/enhanced": "workspace:*", "@module-federation/node": "workspace:*", diff --git a/packages/modernjs/src/cli/utils.ts b/packages/modernjs/src/cli/utils.ts index 3409f1b00b7..fd85f5746ff 100644 --- a/packages/modernjs/src/cli/utils.ts +++ b/packages/modernjs/src/cli/utils.ts @@ -5,6 +5,7 @@ import { bundle } from '@modern-js/node-bundle-require'; import { PluginOptions } from '../types'; import { LOCALHOST, PLUGIN_IDENTIFIER } from '../constant'; import logger from './logger'; +import { autoDeleteSplitChunkCacheGroups } from '@module-federation/rsbuild-plugin/utils'; import type { BundlerConfig, BundlerChainConfig } from '../interfaces/bundler'; import type { @@ -419,31 +420,3 @@ const SHARED_SPLIT_CHUNK_MAP = { '@douyinfe/semi-ui': SPLIT_CHUNK_MAP.SEMI, axios: SPLIT_CHUNK_MAP.AXIOS, }; - -function autoDeleteSplitChunkCacheGroups( - mfConfig: moduleFederationPlugin.ModuleFederationPluginOptions, - bundlerConfig: BundlerConfig, -) { - if (!mfConfig.shared) { - return; - } - if ( - !bundlerConfig.optimization?.splitChunks || - !bundlerConfig.optimization.splitChunks.cacheGroups - ) { - return; - } - const arrayShared = Array.isArray(mfConfig.shared) - ? mfConfig.shared - : Object.keys(mfConfig.shared); - for (const shared of arrayShared) { - const splitChunkKey = - SHARED_SPLIT_CHUNK_MAP[shared as keyof typeof SHARED_SPLIT_CHUNK_MAP]; - if (!splitChunkKey) { - continue; - } - if (bundlerConfig.optimization.splitChunks.cacheGroups[splitChunkKey]) { - delete bundlerConfig.optimization.splitChunks.cacheGroups[splitChunkKey]; - } - } -} diff --git a/packages/rsbuild-plugin/package.json b/packages/rsbuild-plugin/package.json index a3b86d22c6e..1503e08e848 100644 --- a/packages/rsbuild-plugin/package.json +++ b/packages/rsbuild-plugin/package.json @@ -14,9 +14,14 @@ "license": "MIT", "exports": { ".": { + "types": "./dist/index.cjs.d.ts", "import": "./dist/index.esm.js", - "require": "./dist/index.cjs.js", - "types": "./dist/index.cjs.d.ts" + "require": "./dist/index.cjs.js" + }, + "./utils": { + "types": "./dist/utils.cjs.d.ts", + "import": "./dist/utils.esm.js", + "require": "./dist/utils.cjs.js" } }, "main": "./dist/index.cjs.js", @@ -25,6 +30,9 @@ "*": { ".": [ "./dist/index.cjs.d.ts" + ], + "utils": [ + "./dist/utils.cjs.d.ts" ] } }, diff --git a/packages/rsbuild-plugin/rollup.config.js b/packages/rsbuild-plugin/rollup.config.js index 55a064559b4..f5b204786dc 100644 --- a/packages/rsbuild-plugin/rollup.config.js +++ b/packages/rsbuild-plugin/rollup.config.js @@ -13,6 +13,7 @@ module.exports = (rollupConfig, _projectOptions) => { ); rollupConfig.input = { index: 'packages/rsbuild-plugin/src/cli/index.ts', + utils: 'packages/rsbuild-plugin/src/utils/index.ts', }; return rollupConfig; }; diff --git a/packages/rsbuild-plugin/src/cli/index.ts b/packages/rsbuild-plugin/src/cli/index.ts index 82b96858d3f..4be614bf539 100644 --- a/packages/rsbuild-plugin/src/cli/index.ts +++ b/packages/rsbuild-plugin/src/cli/index.ts @@ -1,15 +1,18 @@ import { parseOptions } from '@module-federation/enhanced'; -import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack'; +import { + ModuleFederationPlugin, + PLUGIN_NAME, +} from '@module-federation/enhanced/rspack'; import { isRequiredVersion } from '@module-federation/sdk'; -import { isRegExp } from '../utils/index'; +import { isRegExp, autoDeleteSplitChunkCacheGroups } from '../utils/index'; import pkgJson from '../../package.json'; import type { moduleFederationPlugin, sharePlugin, } from '@module-federation/sdk'; -import type { RsbuildPlugin, EnvironmentConfig } from '@rsbuild/core'; +import type { RsbuildPlugin } from '@rsbuild/core'; import logger from '../logger'; type ModuleFederationOptions = @@ -22,8 +25,11 @@ const RSPACK_PLUGIN_MODULE_FEDERATION_NAME = 'module-federation'; export { RSBUILD_PLUGIN_MODULE_FEDERATION_NAME, RSPACK_PLUGIN_MODULE_FEDERATION_NAME, + PLUGIN_NAME, }; +export const LIB_FORMAT = ['commonjs', 'umd', 'modern-module']; + export const pluginModuleFederation = ( moduleFederationOptions: ModuleFederationOptions, ): RsbuildPlugin => ({ @@ -52,6 +58,94 @@ export const pluginModuleFederation = ( shared[0].endsWith('/') ? shared[0].slice(0, -1) : shared[0], ); + api.onBeforeCreateCompiler(({ bundlerConfigs }) => { + bundlerConfigs.forEach((bundlerConfig) => { + const library = bundlerConfig.output?.library; + // lib format + if ( + typeof library === 'object' && + !Array.isArray(library) && + 'type' in library && + LIB_FORMAT.includes(library.type) + ) { + return; + } else { + // mf + autoDeleteSplitChunkCacheGroups( + moduleFederationOptions, + bundlerConfig, + ); + + const externals = bundlerConfig.externals; + if (Array.isArray(externals)) { + const sharedModules = new Set(); + bundlerConfig.externals = externals.filter((ext) => { + let sharedModule; + if (isRegExp(ext)) { + const match = shared.some((dep) => { + if ( + (ext as RegExp).test(dep) || + (ext as RegExp).test(pkgJson.name) + ) { + sharedModule = dep; + return true; + } + return false; + }); + + match && sharedModule && sharedModules.add(sharedModule); + return !match; + } + + if (typeof ext === 'string') { + if (ext === pkgJson.name) { + return false; + } + + const match = shared.some((dep) => { + if (dep === ext) { + sharedModule = dep; + } + return dep === ext; + }); + if (match) { + sharedModule && sharedModules.add(sharedModule); + return false; + } + return true; + } + return true; + }); + if (sharedModules.size > 0) { + for (const sharedModule of sharedModules) { + logger.log( + `${sharedModule} is removed from externals because it is a shared module.`, + ); + } + } + } + + if (!bundlerConfig.output?.chunkLoadingGlobal) { + bundlerConfig.output!.chunkLoadingGlobal = 'jsonp'; + } + + // `uniqueName` is required for react refresh to work + if (!bundlerConfig.output?.uniqueName) { + bundlerConfig.output!.uniqueName = moduleFederationOptions.name; + } + + if ( + !bundlerConfig.plugins!.find((p) => p && p.name === PLUGIN_NAME) + ) { + bundlerConfig.plugins!.push( + new ModuleFederationPlugin(moduleFederationOptions), + ); + } + } + }); + }); + + // dev config only works on format: 'mf' api.modifyRsbuildConfig((config) => { // Change some default configs for remote modules if (moduleFederationOptions.exposes) { @@ -77,18 +171,6 @@ export const pluginModuleFederation = ( }); api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => { - /** - * Currently, splitChunks will take precedence over module federation shared modules. - * So we need to disable the default split chunks rules to make shared modules to work properly. - * @see https://github.com/module-federation/module-federation-examples/issues/3161 - */ - if (config.performance?.chunkSplit?.strategy === 'split-by-experience') { - config.performance.chunkSplit = { - ...config.performance.chunkSplit, - strategy: 'custom', - }; - } - // Module Federation runtime uses ES6+ syntax, // adding to include and let SWC transform it config.source.include = [ @@ -97,77 +179,7 @@ export const pluginModuleFederation = ( /@module-federation[\\/]runtime/, ]; - // filter external with shared config, - const externals = config.output.externals; - if (Array.isArray(externals)) { - const sharedModules = new Set(); - config.output.externals = externals.filter((ext) => { - let sharedModule; - if (isRegExp(ext)) { - const match = shared.some((dep) => { - if ( - (ext as RegExp).test(dep) || - (ext as RegExp).test(pkgJson.name) - ) { - sharedModule = dep; - return true; - } - return false; - }); - - match && sharedModule && sharedModules.add(sharedModule); - return !match; - } - - if (typeof ext === 'string') { - if (ext === pkgJson.name) { - return false; - } - - const match = shared.some((dep) => { - if (dep === ext) { - sharedModule = dep; - } - return dep === ext; - }); - if (match) { - sharedModule && sharedModules.add(sharedModule); - return false; - } - return true; - } - return true; - }); - if (sharedModules.size > 0) { - for (const sharedModule of sharedModules) { - logger.log( - `${sharedModule} is removed from externals because it is a shared module.`, - ); - } - } - } - - const mfConfig: EnvironmentConfig = { - tools: { - rspack: { - output: { - chunkLoading: 'jsonp', - }, - }, - }, - }; - return mergeEnvironmentConfig(config, mfConfig); - }); - - api.modifyBundlerChain(async (chain) => { - chain - .plugin(RSPACK_PLUGIN_MODULE_FEDERATION_NAME) - .use(ModuleFederationPlugin, [moduleFederationOptions]); - - // `uniqueName` is required for react refresh to work - if (!chain.output.get('uniqueName')) { - chain.output.set('uniqueName', moduleFederationOptions.name); - } + return config; }); }, }); diff --git a/packages/rsbuild-plugin/src/utils/autoDeleteSplitChunkCacheGroups.ts b/packages/rsbuild-plugin/src/utils/autoDeleteSplitChunkCacheGroups.ts new file mode 100644 index 00000000000..6d95e1024ec --- /dev/null +++ b/packages/rsbuild-plugin/src/utils/autoDeleteSplitChunkCacheGroups.ts @@ -0,0 +1,62 @@ +import type { moduleFederationPlugin } from '@module-federation/sdk'; +import type { Rspack } from '@rsbuild/core'; + +// lib-polyfill.js: include core-js,@babel/runtime,@swc/helpers,tslib. +// lib-react.js: include react,react-dom. +// lib-router.js: include react-router,react-router-dom,history,@remix-run/router. +// lib-lodash.js: include lodash,lodash-es. +// lib-antd.js: include antd. +// lib-arco.js: include @arco-design/web-react. +// lib-semi.js: include @douyinfe/semi-ui. +// lib-axios.js: include axios. + +const SPLIT_CHUNK_MAP = { + REACT: 'react', + ROUTER: 'router', + LODASH: 'lib-lodash', + ANTD: 'lib-antd', + ARCO: 'lib-arco', + SEMI: 'lib-semi', + AXIOS: 'lib-axios', +}; +const SHARED_SPLIT_CHUNK_MAP = { + react: SPLIT_CHUNK_MAP.REACT, + 'react-dom': SPLIT_CHUNK_MAP.REACT, + 'react-router': SPLIT_CHUNK_MAP.ROUTER, + 'react-router-dom': SPLIT_CHUNK_MAP.ROUTER, + '@remix-run/router': SPLIT_CHUNK_MAP.ROUTER, + lodash: SPLIT_CHUNK_MAP.LODASH, + 'lodash-es': SPLIT_CHUNK_MAP.LODASH, + antd: SPLIT_CHUNK_MAP.ANTD, + '@arco-design/web-react': SPLIT_CHUNK_MAP.ARCO, + '@douyinfe/semi-ui': SPLIT_CHUNK_MAP.SEMI, + axios: SPLIT_CHUNK_MAP.AXIOS, +}; + +export function autoDeleteSplitChunkCacheGroups( + mfConfig: moduleFederationPlugin.ModuleFederationPluginOptions, + bundlerConfig: Rspack.Configuration, +) { + if (!mfConfig.shared) { + return; + } + if ( + !bundlerConfig.optimization?.splitChunks || + !bundlerConfig.optimization.splitChunks.cacheGroups + ) { + return; + } + const arrayShared = Array.isArray(mfConfig.shared) + ? mfConfig.shared + : Object.keys(mfConfig.shared); + for (const shared of arrayShared) { + const splitChunkKey = + SHARED_SPLIT_CHUNK_MAP[shared as keyof typeof SHARED_SPLIT_CHUNK_MAP]; + if (!splitChunkKey) { + continue; + } + if (bundlerConfig.optimization.splitChunks.cacheGroups[splitChunkKey]) { + delete bundlerConfig.optimization.splitChunks.cacheGroups[splitChunkKey]; + } + } +} diff --git a/packages/rsbuild-plugin/src/utils/index.ts b/packages/rsbuild-plugin/src/utils/index.ts index fcf940ac8e2..3e81ef74797 100644 --- a/packages/rsbuild-plugin/src/utils/index.ts +++ b/packages/rsbuild-plugin/src/utils/index.ts @@ -5,3 +5,4 @@ export function isRegExp(target: any) { } export * from './constant'; +export * from './autoDeleteSplitChunkCacheGroups'; diff --git a/packages/rspack/src/ModuleFederationPlugin.ts b/packages/rspack/src/ModuleFederationPlugin.ts index b8344efd6c9..af6efa1c37f 100644 --- a/packages/rspack/src/ModuleFederationPlugin.ts +++ b/packages/rspack/src/ModuleFederationPlugin.ts @@ -25,8 +25,9 @@ declare const __VERSION__: string; const RuntimeToolsPath = require.resolve('@module-federation/runtime-tools'); +export const PLUGIN_NAME = 'RspackModuleFederationPlugin'; export class ModuleFederationPlugin implements RspackPluginInstance { - readonly name = 'RspackModuleFederationPlugin'; + readonly name = PLUGIN_NAME; private _options: moduleFederationPlugin.ModuleFederationPluginOptions; private _statsPlugin?: StatsPlugin; diff --git a/packages/rspack/src/index.ts b/packages/rspack/src/index.ts index a488f9e47ac..d9b772f79a8 100644 --- a/packages/rspack/src/index.ts +++ b/packages/rspack/src/index.ts @@ -1,4 +1,4 @@ -export { ModuleFederationPlugin } from './ModuleFederationPlugin'; +export { ModuleFederationPlugin, PLUGIN_NAME } from './ModuleFederationPlugin'; import { container } from '@rspack/core'; export const ContainerPlugin = container.ContainerPlugin; export const ContainerReferencePlugin = container.ContainerReferencePlugin; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8db41550573..76bf1b8eb6a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1618,10 +1618,10 @@ importers: version: link:../../packages/storybook-addon '@rsbuild/plugin-react': specifier: ^1.0.6 - version: 1.0.6(@rsbuild/core@1.1.1) + version: 1.0.6(@rsbuild/core@1.1.7) '@rslib/core': - specifier: ^0.1.2 - version: 0.1.2(typescript@5.5.2) + specifier: ^0.1.5 + version: 0.1.5(typescript@5.5.2) '@types/react': specifier: ^18.3.11 version: 18.3.11 @@ -1639,10 +1639,10 @@ importers: version: 8.4.2(prettier@3.3.3) storybook-addon-rslib: specifier: ^0.1.4 - version: 0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.1.2)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) + version: 0.1.4(@rsbuild/core@1.1.7)(@rslib/core@0.1.5)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) storybook-react-rsbuild: specifier: ^0.1.5 - version: 0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0) + version: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0) apps/runtime-demo/3005-runtime-host: dependencies: @@ -2315,6 +2315,9 @@ importers: '@module-federation/node': specifier: workspace:* version: link:../node + '@module-federation/rsbuild-plugin': + specifier: workspace:* + version: link:../rsbuild-plugin '@module-federation/sdk': specifier: workspace:* version: link:../sdk @@ -2933,10 +2936,10 @@ packages: '@babel/helpers': 7.26.0 '@babel/parser': 7.26.2 '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 1.9.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) gensync: 1.0.0-beta.2 json5: 2.2.3 lodash: 4.17.21 @@ -2962,7 +2965,7 @@ packages: '@babel/traverse': 7.25.7 '@babel/types': 7.25.7 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -2981,10 +2984,10 @@ packages: '@babel/helpers': 7.26.0 '@babel/parser': 7.26.2 '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3004,10 +3007,10 @@ packages: '@babel/helpers': 7.26.0 '@babel/parser': 7.26.2 '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3027,10 +3030,10 @@ packages: '@babel/helpers': 7.26.0 '@babel/parser': 7.26.2 '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3118,7 +3121,7 @@ packages: resolution: {integrity: sha512-C47lC7LIDCnz0h4vai/tpNOI95tCd5ZT3iBt/DBH5lXKHZsyNQv18yf1wIIg2ntiQNgmAvA+DgZ82iW8Qdym8g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3155,7 +3158,7 @@ packages: '@babel/helper-optimise-call-expression': 7.25.7 '@babel/helper-replace-supers': 7.25.7(@babel/core@7.25.2) '@babel/helper-skip-transparent-expression-wrappers': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -3173,7 +3176,7 @@ packages: '@babel/helper-optimise-call-expression': 7.25.7 '@babel/helper-replace-supers': 7.25.7(@babel/core@7.25.7) '@babel/helper-skip-transparent-expression-wrappers': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -3191,7 +3194,7 @@ packages: '@babel/helper-optimise-call-expression': 7.25.7 '@babel/helper-replace-supers': 7.25.7(@babel/core@7.26.0) '@babel/helper-skip-transparent-expression-wrappers': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -3208,7 +3211,7 @@ packages: '@babel/helper-optimise-call-expression': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.25.7) '@babel/helper-skip-transparent-expression-wrappers': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -3226,7 +3229,7 @@ packages: '@babel/helper-optimise-call-expression': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.26.0) '@babel/helper-skip-transparent-expression-wrappers': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -3285,7 +3288,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -3300,7 +3303,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -3310,7 +3313,7 @@ packages: resolution: {integrity: sha512-O31Ssjd5K6lPbTX9AAYpSKrZmLeagt9uwschJd+Ixo6QiRyfpvgtVQp8qrDR9UNFjZ8+DO34ZkdrN+BnPXemeA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3319,7 +3322,7 @@ packages: resolution: {integrity: sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3328,7 +3331,16 @@ packages: resolution: {integrity: sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 + transitivePeerDependencies: + - supports-color + + /@babel/helper-module-imports@7.25.9: + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3352,7 +3364,7 @@ packages: '@babel/helper-module-imports': 7.25.7 '@babel/helper-simple-access': 7.24.7 '@babel/helper-validator-identifier': 7.24.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3363,9 +3375,9 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.12.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3377,9 +3389,9 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.25.7 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3391,9 +3403,9 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.25.8 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3405,9 +3417,9 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3440,7 +3452,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-annotate-as-pure': 7.25.9 '@babel/helper-wrap-function': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3454,7 +3466,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-annotate-as-pure': 7.25.9 '@babel/helper-wrap-function': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3467,7 +3479,7 @@ packages: '@babel/core': 7.25.2 '@babel/helper-member-expression-to-functions': 7.25.7 '@babel/helper-optimise-call-expression': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3481,7 +3493,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-member-expression-to-functions': 7.25.7 '@babel/helper-optimise-call-expression': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3495,7 +3507,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-member-expression-to-functions': 7.25.7 '@babel/helper-optimise-call-expression': 7.25.7 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3508,7 +3520,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-member-expression-to-functions': 7.25.9 '@babel/helper-optimise-call-expression': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3522,7 +3534,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-member-expression-to-functions': 7.25.9 '@babel/helper-optimise-call-expression': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3530,7 +3542,7 @@ packages: resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3539,7 +3551,7 @@ packages: resolution: {integrity: sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3549,7 +3561,7 @@ packages: resolution: {integrity: sha512-c6WHXuiaRsJTyHYLJV75t9IqsmTbItYfdj99PnzYGQZkYKvan5/2jKJ7gu31J3/BJ/A18grImSPModuyG/Eo0Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3558,7 +3570,7 @@ packages: resolution: {integrity: sha512-pPbNbchZBkPMD50K0p3JGcFMNLVUCuU/ABybm/PGNj4JiHrpmNyqqCphBk4i19xXtNV0JhldQJJtbSW5aUvbyA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3567,7 +3579,7 @@ packages: resolution: {integrity: sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3605,7 +3617,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 transitivePeerDependencies: - supports-color @@ -3672,7 +3684,7 @@ packages: dependencies: '@babel/core': 7.25.7 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3685,7 +3697,7 @@ packages: dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -3762,7 +3774,7 @@ packages: dependencies: '@babel/core': 7.25.7 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -3775,7 +3787,7 @@ packages: dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -4511,7 +4523,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.25.7) - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -4525,7 +4537,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.26.0) - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -4536,7 +4548,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.25.7 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.25.7) transitivePeerDependencies: @@ -4550,7 +4562,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.25.9(@babel/core@7.26.0) transitivePeerDependencies: @@ -4668,7 +4680,7 @@ packages: '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.25.7) - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -4685,7 +4697,7 @@ packages: '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-replace-supers': 7.25.9(@babel/core@7.26.0) - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -4910,7 +4922,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -4924,7 +4936,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -5080,7 +5092,7 @@ packages: '@babel/helper-module-transforms': 7.26.0(@babel/core@7.25.7) '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -5095,7 +5107,7 @@ packages: '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.0) '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -5587,7 +5599,7 @@ packages: dependencies: '@babel/core': 7.25.2 '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.25.2) '@babel/types': 7.26.0 @@ -5603,7 +5615,7 @@ packages: dependencies: '@babel/core': 7.25.7 '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.25.7) '@babel/types': 7.26.0 @@ -5619,7 +5631,7 @@ packages: dependencies: '@babel/core': 7.25.8 '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.25.8) '@babel/types': 7.26.0 @@ -5635,7 +5647,7 @@ packages: dependencies: '@babel/core': 7.26.0 '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.26.0) '@babel/types': 7.26.0 @@ -5753,7 +5765,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.25.7 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 babel-plugin-polyfill-corejs2: 0.4.11(@babel/core@7.25.7) babel-plugin-polyfill-corejs3: 0.10.6(@babel/core@7.25.7) @@ -5770,7 +5782,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 babel-plugin-polyfill-corejs2: 0.4.11(@babel/core@7.26.0) babel-plugin-polyfill-corejs3: 0.10.6(@babel/core@7.26.0) @@ -6364,7 +6376,21 @@ packages: '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + + /@babel/traverse@7.25.9: + resolution: {integrity: sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/types': 7.26.0 + debug: 4.3.7(supports-color@9.3.1) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -6990,24 +7016,24 @@ packages: requiresBuild: true dependencies: '@emnapi/wasi-threads': 1.0.1 - tslib: 2.6.3 + tslib: 2.8.1 /@emnapi/runtime@1.3.0: resolution: {integrity: sha512-XMBySMuNZs3DM96xcJmLW4EfGnf+uGmFNjzpehMjuX5PLB5j87ar2Zc4e3PVeZ3I5g3tYtAqskB28manlF69Zw==} requiresBuild: true dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /@emnapi/wasi-threads@1.0.1: resolution: {integrity: sha512-iIBu7mwkq4UQGeMEM8bLwNK962nXdhodeScX4slfQnRhEMMzvYivHhutCIk8uojvmASXXPC2WNEjwxFWk72Oqw==} requiresBuild: true dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /@emotion/babel-plugin@11.12.0: resolution: {integrity: sha512-y2WQb+oP8Jqvvclh8Q55gLUyb7UFvgv7eJfsj7td5TToBrIUtPay2kMrZi4xjq9qw2vD0ZR5fSho0yqoFgX7Rw==} dependencies: - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/runtime': 7.26.0 '@emotion/hash': 0.9.2 '@emotion/memoize': 0.9.0 @@ -8553,7 +8579,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -8629,7 +8655,7 @@ packages: deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -9105,33 +9131,33 @@ packages: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - /@jsonjoy.com/base64@1.1.2(tslib@2.6.3): + /@jsonjoy.com/base64@1.1.2(tslib@2.8.1): resolution: {integrity: sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==} engines: {node: '>=10.0'} peerDependencies: tslib: '2' dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - /@jsonjoy.com/json-pack@1.1.0(tslib@2.6.3): + /@jsonjoy.com/json-pack@1.1.0(tslib@2.8.1): resolution: {integrity: sha512-zlQONA+msXPPwHWZMKFVS78ewFczIll5lXiVPwFPCZUsrOKdxc2AvxU1HoNBmMRhqDZUR9HkC3UOm+6pME6Xsg==} engines: {node: '>=10.0'} peerDependencies: tslib: '2' dependencies: - '@jsonjoy.com/base64': 1.1.2(tslib@2.6.3) - '@jsonjoy.com/util': 1.3.0(tslib@2.6.3) + '@jsonjoy.com/base64': 1.1.2(tslib@2.8.1) + '@jsonjoy.com/util': 1.3.0(tslib@2.8.1) hyperdyperid: 1.2.0 - thingies: 1.21.0(tslib@2.6.3) - tslib: 2.6.3 + thingies: 1.21.0(tslib@2.8.1) + tslib: 2.8.1 - /@jsonjoy.com/util@1.3.0(tslib@2.6.3): + /@jsonjoy.com/util@1.3.0(tslib@2.8.1): resolution: {integrity: sha512-Cebt4Vk7k1xHy87kHY7KSPLT77A7Ev7IfOblyLZhtYEhrdQ6fX4EoLq3xOQ3O/DRMEh2ok5nyC180E+ABS8Wmw==} engines: {node: '>=10.0'} peerDependencies: tslib: '2' dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /@juggle/resize-observer@3.4.0: resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==} @@ -11677,7 +11703,7 @@ packages: '@open-draft/until': 1.0.3 '@types/debug': 4.1.12 '@xmldom/xmldom': 0.8.10 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) headers-polyfill: 3.2.5 outvariant: 1.4.3 strict-event-emitter: 0.2.8 @@ -13299,7 +13325,7 @@ packages: chalk: 4.1.2 enquirer: 2.3.6 nx: 20.1.1(@swc-node/register@1.10.9)(@swc/core@1.7.26) - tslib: 2.6.3 + tslib: 2.8.1 yargs-parser: 21.1.1 transitivePeerDependencies: - '@swc-node/register' @@ -14726,7 +14752,7 @@ packages: optional: true dependencies: '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@rollup/pluginutils': 5.1.3(rollup@4.24.0) rollup: 4.24.0 transitivePeerDependencies: @@ -15274,17 +15300,15 @@ packages: optionalDependencies: fsevents: 2.3.3 - /@rsbuild/core@1.1.1: - resolution: {integrity: sha512-CJoO3PIC0Cm/z1iL6nWoIuQzETEMY+D+UIrlMGmWuhdGiixDE2x0spban7jmmJRE7w3Ns8b2ccCmhp6rovEojw==} + /@rsbuild/core@1.1.12: + resolution: {integrity: sha512-9f+E47fMf51Cg4W7CF2Q4f7BRSslVV/+TRvs5ScclYanqXEFtAGV9nuecJEL6Qc9jJV61lES0esPTFdPPnWPGw==} engines: {node: '>=16.7.0'} hasBin: true dependencies: - '@rspack/core': 1.1.1(@swc/helpers@0.5.15) + '@rspack/core': 1.1.8(@swc/helpers@0.5.15) '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.15 core-js: 3.39.0 - optionalDependencies: - fsevents: 2.3.3 dev: true /@rsbuild/core@1.1.7: @@ -15522,12 +15546,12 @@ packages: '@rspack/plugin-react-refresh': 1.0.0(react-refresh@0.14.2) react-refresh: 0.14.2 - /@rsbuild/plugin-react@1.0.6(@rsbuild/core@1.1.1): + /@rsbuild/plugin-react@1.0.6(@rsbuild/core@1.1.7): resolution: {integrity: sha512-k2VS7nvNm74DlVQROK+w+Ua1j60n3qSnVFva8zjmj6uakLCxxp85aRwfEHzaVP/YdDLffweypROuQPYvTZ57ew==} peerDependencies: '@rsbuild/core': 1.x dependencies: - '@rsbuild/core': 1.1.1 + '@rsbuild/core': 1.1.7 '@rspack/plugin-react-refresh': 1.0.0(react-refresh@0.14.2) react-refresh: 0.14.2 dev: true @@ -15710,7 +15734,7 @@ packages: - webpack-cli dev: true - /@rsbuild/plugin-type-check@1.0.1(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2): + /@rsbuild/plugin-type-check@1.0.1(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2): resolution: {integrity: sha512-BahXAJNq4kWtL2dINUlrOL9UCN1t8c/qf5RW8JXx2HSSasfKPJGJ1BVfieMcIaFa/t8/QdafcwoxY1WKPTlSMg==} peerDependencies: '@rsbuild/core': 1.x || ^1.0.1-beta.0 @@ -15718,7 +15742,7 @@ packages: '@rsbuild/core': optional: true dependencies: - '@rsbuild/core': 1.1.1 + '@rsbuild/core': 1.1.7 deepmerge: 4.3.1 fork-ts-checker-webpack-plugin: 9.0.2(typescript@5.5.2)(webpack@5.95.0) json5: 2.2.3 @@ -15857,8 +15881,8 @@ packages: - webpack-cli dev: true - /@rslib/core@0.1.2(typescript@5.5.2): - resolution: {integrity: sha512-gHn0n/0JdHSE1fiut52cMjKXcvP3WQBVnTlKyzJ4u7Z1BMyEQGw/vloAskZdnZ1mMl74oyzGPx1xrXdFsf43Aw==} + /@rslib/core@0.1.5(typescript@5.5.2): + resolution: {integrity: sha512-m0OPJNy5ZZqqKDNWTdiG8GELgg++77Ndx3Op48mHMZ1aUSknqwKm59Rya/nZr/6fc3rvos1YM5FogXQ3/pt1/A==} engines: {node: '>=16.0.0'} hasBin: true peerDependencies: @@ -15870,8 +15894,8 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.7 - rsbuild-plugin-dts: 0.1.2(@rsbuild/core@1.1.7)(typescript@5.5.2) + '@rsbuild/core': 1.1.12 + rsbuild-plugin-dts: 0.1.5(@rsbuild/core@1.1.12)(typescript@5.5.2) tinyglobby: 0.2.10 typescript: 5.5.2 dev: true @@ -15930,6 +15954,14 @@ packages: dev: true optional: true + /@rspack/binding-darwin-arm64@1.1.8: + resolution: {integrity: sha512-I7avr471ghQ3LAqKm2fuXuJPLgQ9gffn5Q4nHi8rsukuZUtiLDPfYzK1QuupEp2JXRWM1gG5lIbSUOht3cD6Ug==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-darwin-x64@0.5.0: resolution: {integrity: sha512-d6SvBURfKow3WcKxTrjJPBkp+NLsuCPoIMaS8/bM4gHwgjVs2zuOsTQ9+l36dypOkjnu6QLkOIykTdiUKJ0eQg==} cpu: [x64] @@ -15984,6 +16016,14 @@ packages: dev: true optional: true + /@rspack/binding-darwin-x64@1.1.8: + resolution: {integrity: sha512-vfqf/c+mcx8rr1M8LnqKmzDdnrgguflZnjGerBLjNerAc+dcUp3lCvNxRIvZ2TkSZZBW8BpCMgjj3n70CZ4VLQ==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-arm64-gnu@0.5.0: resolution: {integrity: sha512-97xFbF7RjJc2VvX+0Hvb7Jzsk+eEE8oEUcc5Dnb7OIwGZulWKk6cLNcRkNfmL/F9kk1QEKlUTNC/VQI7ljf2tA==} cpu: [arm64] @@ -16038,6 +16078,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-arm64-gnu@1.1.8: + resolution: {integrity: sha512-lZlO/rAJSeozi+qtVLkGSXfe+riPawCwM4FsrflELfNlvvEXpANwtrdJ+LsaNVXcgvhh50ZX2KicTdmx9G2b6Q==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-arm64-musl@0.5.0: resolution: {integrity: sha512-lk0IomCy276EoynmksoBwg0IcHvvVXuZPMeq7OgRPTvs33mdTExSzSTPtrGzx/D00bX1ybUqLQwJhcgGt6erPQ==} cpu: [arm64] @@ -16092,6 +16140,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-arm64-musl@1.1.8: + resolution: {integrity: sha512-bX7exULSZwy8xtDh6Z65b6sRC4uSxGuyvSLCEKyhmG6AnJkg0gQMxk3hoO0hWnyGEZgdJEn+jEhk0fjl+6ZRAQ==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-x64-gnu@0.5.0: resolution: {integrity: sha512-r15ddpse0S/8wHtfL85uJrVotvPVIMnQX06KlXyGUSw1jWrjxV+NXFDJ4xXnHCvk/YV6lCFTotAssk4wJEE0Fw==} cpu: [x64] @@ -16146,6 +16202,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-x64-gnu@1.1.8: + resolution: {integrity: sha512-2Prw2USgTJ3aLdLExfik8pAwAHbX4MZrACBGEmR7Vbb56kLjC+++fXkciRc50pUDK4JFr1VQ7eNZrJuDR6GG6Q==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-linux-x64-musl@0.5.0: resolution: {integrity: sha512-lB9Dn1bi4xyzEe6Bf/GQ7Ktlrq4Kmt1LHwN+t0m6iVYH3Vb/3g8uQGDSkwnjP8NmlAtldK1cmvRMhR7flUrgZA==} cpu: [x64] @@ -16200,6 +16264,14 @@ packages: dev: true optional: true + /@rspack/binding-linux-x64-musl@1.1.8: + resolution: {integrity: sha512-bnVGB/mQBKEdzOU/CPmcOE3qEXxGOGGW7/i6iLl2MamVOykJq8fYjL9j86yi6L0r009ja16OgWckykQGc4UqGw==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-arm64-msvc@0.5.0: resolution: {integrity: sha512-aDoF13puU8LxST/qKZndtXzlJbnbnxY2Bxyj0fu7UDh8nHJD4A2HQfWRN6BZFHaVSqM6Bnli410dJrIWeTNhZQ==} cpu: [arm64] @@ -16254,6 +16326,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-arm64-msvc@1.1.8: + resolution: {integrity: sha512-u+na3gxhzeksm4xZyAzn1+XWo5a5j7hgWA/KcFPDQ8qQNkRknx4jnQMxVtcZ9pLskAYV4AcOV/AIximx7zvv8A==} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-ia32-msvc@0.5.0: resolution: {integrity: sha512-EYGeH4YKX5v4gtTL8mBAWnsKSkF+clsKu0z1hgWgSV/vnntNlqJQZUCb5CMdg5VqadNm+lUNDYYHeHNa3+Jp3w==} cpu: [ia32] @@ -16308,6 +16388,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-ia32-msvc@1.1.8: + resolution: {integrity: sha512-FijUxym1INd5fFHwVCLuVP8XEAb4Sk1sMwEEQUlugiDra9ZsLaPw4OgPGxbxkD6SB0DeUz9Zq46Xbcf6d3OgfA==} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding-win32-x64-msvc@0.5.0: resolution: {integrity: sha512-RCECFW6otUrFiPbWQyOvLZOMNV/OL6AyAKMDbX9ejjk0TjLMrHjnhmI5X8EoA/SUc1/vEbgsJzDVLKTfn138cg==} cpu: [x64] @@ -16362,6 +16450,14 @@ packages: dev: true optional: true + /@rspack/binding-win32-x64-msvc@1.1.8: + resolution: {integrity: sha512-SBzIcND4qpDt71jlu1MCDxt335tqInT3YID9V4DoQ4t8wgM/uad7EgKOWKTK6vc2RRaOIShfS2XzqjNUxPXh4w==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@rspack/binding@0.5.0: resolution: {integrity: sha512-+v1elZMn6lKBqbXQzhcfeCaPzztFNGEkNDEcQ7weako6yQPsBihGCRzveMMzZkja4RyB9GRHjWRE+THm8V8+3w==} optionalDependencies: @@ -16458,6 +16554,20 @@ packages: '@rspack/binding-win32-x64-msvc': 1.1.5 dev: true + /@rspack/binding@1.1.8: + resolution: {integrity: sha512-+/JzXx1HctfgPj+XtsCTbRkxiaOfAXGZZLEvs7jgp04WgWRSZ5u97WRCePNPvy+sCfOEH/2zw2ZK36Z7oQRGhQ==} + optionalDependencies: + '@rspack/binding-darwin-arm64': 1.1.8 + '@rspack/binding-darwin-x64': 1.1.8 + '@rspack/binding-linux-arm64-gnu': 1.1.8 + '@rspack/binding-linux-arm64-musl': 1.1.8 + '@rspack/binding-linux-x64-gnu': 1.1.8 + '@rspack/binding-linux-x64-musl': 1.1.8 + '@rspack/binding-win32-arm64-msvc': 1.1.8 + '@rspack/binding-win32-ia32-msvc': 1.1.8 + '@rspack/binding-win32-x64-msvc': 1.1.8 + dev: true + /@rspack/core@0.5.0(@swc/helpers@0.5.3): resolution: {integrity: sha512-/Bpujdtx28qYir7AK9VVSbY35GBFEcZ1NTJZBx/WIzZGZWLCxhlVYfjH8cj44y4RvXa0Y26tnj/q7VJ4U3sHug==} engines: {node: '>=16.0.0'} @@ -16589,8 +16699,8 @@ packages: caniuse-lite: 1.0.30001668 dev: true - /@rspack/core@1.1.1(@swc/helpers@0.5.15): - resolution: {integrity: sha512-khYNAho2evyc7N5mYk4K6B587ou/dN1CDCqWrSDeZZNFFQHtuEp5T3kL1ntsKY7agObQhI60osCYaxFUPs0yww==} + /@rspack/core@1.1.5(@swc/helpers@0.5.15): + resolution: {integrity: sha512-/FmxDeMuW8fJkhz8fHuCu7OiJHFKW78xclEu7LkEujWl4PqJgdWjUL/6FWIj50spRwj6PRfuc31hFSL4hbNfCA==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -16599,14 +16709,14 @@ packages: optional: true dependencies: '@module-federation/runtime-tools': 0.5.1 - '@rspack/binding': 1.1.1 + '@rspack/binding': 1.1.5 '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.15 caniuse-lite: 1.0.30001668 dev: true - /@rspack/core@1.1.5(@swc/helpers@0.5.15): - resolution: {integrity: sha512-/FmxDeMuW8fJkhz8fHuCu7OiJHFKW78xclEu7LkEujWl4PqJgdWjUL/6FWIj50spRwj6PRfuc31hFSL4hbNfCA==} + /@rspack/core@1.1.8(@swc/helpers@0.5.15): + resolution: {integrity: sha512-pcZtcj5iXLCuw9oElTYC47bp/RQADm/MMEb3djHdwJuSlFWfWPQi5QFgJ/lJAxIW9UNHnTFrYtytycfjpuoEcA==} engines: {node: '>=16.0.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -16615,7 +16725,7 @@ packages: optional: true dependencies: '@module-federation/runtime-tools': 0.5.1 - '@rspack/binding': 1.1.5 + '@rspack/binding': 1.1.8 '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.15 caniuse-lite: 1.0.30001668 @@ -17055,7 +17165,7 @@ packages: conventional-changelog-writer: 8.0.0 conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) import-from-esm: 1.3.4 lodash-es: 4.17.21 micromatch: 4.0.8 @@ -17082,7 +17192,7 @@ packages: dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) execa: 5.1.1 lodash: 4.17.21 parse-json: 5.2.0 @@ -17099,7 +17209,7 @@ packages: dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) dir-glob: 3.0.1 execa: 5.1.1 lodash: 4.17.21 @@ -17122,7 +17232,7 @@ packages: '@octokit/plugin-throttling': 9.3.1(@octokit/core@6.1.2) '@semantic-release/error': 4.0.0 aggregate-error: 5.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) dir-glob: 3.0.1 globby: 14.0.2 http-proxy-agent: 7.0.2 @@ -17191,7 +17301,7 @@ packages: conventional-changelog-writer: 8.0.0 conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) get-stream: 7.0.1 import-from-esm: 1.3.4 into-stream: 7.0.0 @@ -18104,7 +18214,7 @@ packages: dependencies: '@babel/generator': 7.26.2 '@babel/parser': 7.26.2 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 '@storybook/csf': 0.1.11 '@storybook/types': 7.6.20 @@ -18120,7 +18230,7 @@ packages: dependencies: '@babel/generator': 7.26.2 '@babel/parser': 7.26.2 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 '@storybook/csf': 0.1.11 '@storybook/types': 8.1.11 @@ -18399,7 +18509,7 @@ packages: typescript: '>= 3.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 @@ -18418,13 +18528,13 @@ packages: typescript: '>= 4.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 micromatch: 4.0.8 react-docgen-typescript: 2.2.2(typescript@5.0.4) - tslib: 2.6.3 + tslib: 2.8.1 typescript: 5.0.4 webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) transitivePeerDependencies: @@ -18437,13 +18547,13 @@ packages: typescript: '>= 4.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 micromatch: 4.0.8 react-docgen-typescript: 2.2.2(typescript@5.5.2) - tslib: 2.6.3 + tslib: 2.8.1 typescript: 5.5.2 webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) transitivePeerDependencies: @@ -18915,7 +19025,7 @@ packages: '@swc-node/sourcemap-support': 0.5.1 '@swc/core': 1.7.26(@swc/helpers@0.5.13) colorette: 2.0.20 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) oxc-resolver: 1.12.0 pirates: 4.0.6 tslib: 2.6.3 @@ -19064,7 +19174,7 @@ packages: /@swc/helpers@0.5.1: resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /@swc/helpers@0.5.13: resolution: {integrity: sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==} @@ -19251,7 +19361,7 @@ packages: /@tybys/wasm-util@0.9.0: resolution: {integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /@types/accepts@1.3.7: resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} @@ -20158,7 +20268,7 @@ packages: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 @@ -20210,7 +20320,7 @@ packages: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 typescript: 5.0.4 transitivePeerDependencies: @@ -20231,7 +20341,7 @@ packages: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.2) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 typescript: 5.5.2 transitivePeerDependencies: @@ -20252,7 +20362,7 @@ packages: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.2) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 typescript: 5.5.2 transitivePeerDependencies: @@ -20311,7 +20421,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 tsutils: 3.21.0(typescript@5.0.4) typescript: 5.0.4 @@ -20331,7 +20441,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.2) '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.5.2) typescript: 5.5.2 @@ -20350,7 +20460,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 8.8.0(typescript@5.5.2) '@typescript-eslint/utils': 8.8.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) ts-api-utils: 1.3.0(typescript@5.5.2) typescript: 5.5.2 transitivePeerDependencies: @@ -20394,7 +20504,7 @@ packages: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.6.3 @@ -20415,7 +20525,7 @@ packages: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -20437,7 +20547,7 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20459,7 +20569,7 @@ packages: dependencies: '@typescript-eslint/types': 8.14.0 '@typescript-eslint/visitor-keys': 8.14.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20481,7 +20591,7 @@ packages: dependencies: '@typescript-eslint/types': 8.8.0 '@typescript-eslint/visitor-keys': 8.8.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20831,7 +20941,7 @@ packages: peerDependencies: vitest: 1.6.0 dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 @@ -20852,7 +20962,7 @@ packages: dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -21046,11 +21156,11 @@ packages: optional: true dependencies: '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-jsx': 7.25.7(@babel/core@7.25.2) '@babel/template': 7.25.9 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 '@vue/babel-helper-vue-transform-on': 1.2.5 '@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.25.2) @@ -21067,7 +21177,7 @@ packages: dependencies: '@babel/code-frame': 7.26.2 '@babel/core': 7.25.2 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 '@babel/parser': 7.26.2 '@vue/compiler-sfc': 3.5.10 @@ -21455,7 +21565,7 @@ packages: esbuild: '>=0.10.0' dependencies: esbuild: 0.18.20 - tslib: 2.6.3 + tslib: 2.8.1 dev: true /@yarnpkg/fslib@2.10.3: @@ -21482,7 +21592,7 @@ packages: engines: {node: '>=18.12.0'} dependencies: js-yaml: 3.14.1 - tslib: 2.6.3 + tslib: 2.8.1 /@zkochan/js-yaml@0.0.7: resolution: {integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==} @@ -21614,7 +21724,7 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color @@ -21622,7 +21732,7 @@ packages: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} engines: {node: '>= 14'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color dev: true @@ -22065,7 +22175,7 @@ packages: resolution: {integrity: sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==} engines: {node: '>=10'} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 dev: true /aria-query@5.3.0: @@ -22271,14 +22381,14 @@ packages: resolution: {integrity: sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==} engines: {node: '>=4'} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 dev: true /ast-types@0.16.1: resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==} engines: {node: '>=4'} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /astral-regex@2.0.0: resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} @@ -22504,7 +22614,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.26.0) - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 transitivePeerDependencies: - supports-color @@ -22523,7 +22633,7 @@ packages: /babel-plugin-import@1.13.5: resolution: {integrity: sha512-IkqnoV+ov1hdJVofly9pXRJmeDm9EtROfrc5i6eII0Hix2xMs5FEm8FG3ExMvazbnZBbgHIt6qdO8And6lCloQ==} dependencies: - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -22531,7 +22641,7 @@ packages: /babel-plugin-import@1.13.8: resolution: {integrity: sha512-36babpjra5m3gca44V6tSTomeBlPA7cHUynrE2WiQIm3rEGD9xy28MKsx5IdO45EbnpJY7Jrgd00C6Dwt/l/2Q==} dependencies: - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 transitivePeerDependencies: - supports-color dev: true @@ -22650,7 +22760,7 @@ packages: styled-components: '>= 2' dependencies: '@babel/helper-annotate-as-pure': 7.25.9 - '@babel/helper-module-imports': 7.25.9(supports-color@5.5.0) + '@babel/helper-module-imports': 7.25.9 babel-plugin-syntax-jsx: 6.18.0 lodash: 4.17.21 styled-components: 6.1.13(react-dom@18.3.1)(react@18.3.1) @@ -23283,7 +23393,7 @@ packages: resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} dependencies: pascal-case: 3.1.2 - tslib: 2.6.3 + tslib: 2.8.1 /camelcase-css@2.0.1: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} @@ -24149,7 +24259,7 @@ packages: normalize-path: 3.0.0 schema-utils: 4.2.0 serialize-javascript: 6.0.2 - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /copy-webpack-plugin@11.0.0(webpack@5.93.0): resolution: {integrity: sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ==} @@ -24494,7 +24604,7 @@ packages: postcss-modules-values: 4.0.0(postcss@8.4.47) postcss-value-parser: 4.2.0 semver: 7.6.3 - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /css-loader@6.11.0(@rspack/core@1.1.1)(webpack@5.93.0): resolution: {integrity: sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g==} @@ -25257,7 +25367,6 @@ packages: dependencies: ms: 2.1.3 supports-color: 9.3.1 - dev: true /decimal.js@10.4.3: resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} @@ -25504,7 +25613,7 @@ packages: hasBin: true dependencies: address: 1.2.2 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color @@ -25666,7 +25775,7 @@ packages: resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.8.1 /dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} @@ -26189,7 +26298,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) esbuild: 0.17.19 transitivePeerDependencies: - supports-color @@ -26200,7 +26309,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) esbuild: 0.18.20 transitivePeerDependencies: - supports-color @@ -26211,7 +26320,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) esbuild: 0.23.1 transitivePeerDependencies: - supports-color @@ -26600,7 +26709,7 @@ packages: optional: true dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) enhanced-resolve: 5.17.1 eslint: 8.57.1 eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) @@ -27030,7 +27139,7 @@ packages: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -27107,7 +27216,7 @@ packages: resolution: {integrity: sha512-YNF+mZ/Wu2FU/gvmzuWtYc8rloubL7wfXCTgouFrnjGVXPA/EeYYA7pupXWrb3Iv1cTBeSSxxJIbK23l4MRNqg==} engines: {node: '>=8.3.0'} dependencies: - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 c8: 7.14.0 transitivePeerDependencies: @@ -27950,7 +28059,7 @@ packages: resolution: {integrity: sha512-QFaHbhv9WPUeLYBDe/PAuLKJ4Dd9OPvKs9xZBr3yLXnUrDNaVXKu2baDBXe3naPY30hgHYSsf2JW4jzas2mDEQ==} engines: {node: '>=10'} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 dev: false /follow-redirects@1.15.9(debug@4.3.7): @@ -27962,7 +28071,7 @@ packages: debug: optional: true dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} @@ -29536,7 +29645,7 @@ packages: dependencies: '@tootallnate/once': 2.0.0 agent-base: 6.0.2 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color dev: true @@ -29546,7 +29655,7 @@ packages: engines: {node: '>= 14'} dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color dev: true @@ -29574,7 +29683,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@types/http-proxy': 1.17.15 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) http-proxy: 1.18.1(debug@4.3.7) is-glob: 4.0.3 is-plain-object: 5.0.0 @@ -29654,7 +29763,7 @@ packages: engines: {node: '>= 6.0.0'} dependencies: agent-base: 5.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color dev: true @@ -29664,7 +29773,7 @@ packages: engines: {node: '>= 6'} dependencies: agent-base: 6.0.2 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color @@ -29673,7 +29782,7 @@ packages: engines: {node: '>= 14'} dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) transitivePeerDependencies: - supports-color dev: true @@ -29813,7 +29922,7 @@ packages: resolution: {integrity: sha512-7EyUlPFC0HOlBDpUFGfYstsU7XHxZJKAAMzCT8wZ0hMW7b+hG51LIKTDcsgtz8Pu6YC0HqRVbX+rVUtsGMUKvg==} engines: {node: '>=16.20'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) import-meta-resolve: 4.1.0 transitivePeerDependencies: - supports-color @@ -30641,7 +30750,7 @@ packages: resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} engines: {node: '>=10'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) istanbul-lib-coverage: 3.2.2 source-map: 0.6.1 transitivePeerDependencies: @@ -30653,7 +30762,7 @@ packages: engines: {node: '>=10'} dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -31686,7 +31795,7 @@ packages: content-disposition: 0.5.4 content-type: 1.0.5 cookies: 0.9.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) delegates: 1.0.0 depd: 2.0.0 destroy: 1.2.0 @@ -31803,7 +31912,7 @@ packages: dependencies: copy-anything: 2.0.6 parse-node-version: 1.0.1 - tslib: 2.6.3 + tslib: 2.8.1 optionalDependencies: errno: 0.1.8 graceful-fs: 4.2.11 @@ -31840,7 +31949,7 @@ packages: webpack-sources: optional: true dependencies: - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) webpack-sources: 3.2.3 /lilconfig@2.1.0: @@ -32143,7 +32252,7 @@ packages: engines: {node: '>=8.0'} dependencies: date-format: 4.0.14 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) flatted: 3.3.1 rfdc: 1.4.1 streamroller: 3.1.5 @@ -32204,7 +32313,7 @@ packages: /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /lowercase-keys@2.0.0: resolution: {integrity: sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==} @@ -32276,8 +32385,8 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 - /magic-string@0.30.14: - resolution: {integrity: sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==} + /magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} dependencies: '@jridgewell/sourcemap-codec': 1.5.0 dev: true @@ -32639,10 +32748,10 @@ packages: resolution: {integrity: sha512-74wDsex5tQDSClVkeK1vtxqYCAgCoXxx+K4NSHzgU/muYVYByFqa+0RnrPO9NM6naWm1+G9JmZ0p6QHhXmeYfA==} engines: {node: '>= 4.0.0'} dependencies: - '@jsonjoy.com/json-pack': 1.1.0(tslib@2.6.3) - '@jsonjoy.com/util': 1.3.0(tslib@2.6.3) - tree-dump: 1.0.2(tslib@2.6.3) - tslib: 2.6.3 + '@jsonjoy.com/json-pack': 1.1.0(tslib@2.8.1) + '@jsonjoy.com/util': 1.3.0(tslib@2.8.1) + tree-dump: 1.0.2(tslib@2.8.1) + tslib: 2.8.1 /memoizerific@1.11.3: resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==} @@ -33004,7 +33113,7 @@ packages: resolution: {integrity: sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==} dependencies: '@types/debug': 4.1.12 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) decode-named-character-reference: 1.0.2 micromark-core-commonmark: 1.1.0 micromark-factory-space: 1.1.0 @@ -33603,7 +33712,7 @@ packages: resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} dependencies: lower-case: 2.0.2 - tslib: 2.6.3 + tslib: 2.8.1 /node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} @@ -34074,7 +34183,7 @@ packages: tar-stream: 2.2.0 tmp: 0.2.3 tsconfig-paths: 4.2.0 - tslib: 2.6.3 + tslib: 2.8.1 yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: @@ -34628,7 +34737,7 @@ packages: resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} dependencies: dot-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.8.1 /parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} @@ -34756,7 +34865,7 @@ packages: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} dependencies: no-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.8.1 /pascalcase@0.1.1: resolution: {integrity: sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==} @@ -36568,7 +36677,7 @@ packages: engines: {node: '>=8.16.0'} dependencies: '@types/mime-types': 2.1.4 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) extract-zip: 1.7.0 https-proxy-agent: 4.0.0 mime: 2.6.0 @@ -37739,7 +37848,7 @@ packages: engines: {node: '>=16.14.0'} dependencies: '@babel/core': 7.26.0 - '@babel/traverse': 7.25.9(supports-color@5.5.0) + '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.6 @@ -37875,7 +37984,7 @@ packages: '@types/react': 18.2.79 react: 18.3.1 react-style-singleton: 2.2.1(@types/react@18.2.79)(react@18.3.1) - tslib: 2.6.3 + tslib: 2.8.1 dev: true /react-remove-scroll@2.5.5(@types/react@18.2.79)(react@18.3.1): @@ -37892,7 +38001,7 @@ packages: react: 18.3.1 react-remove-scroll-bar: 2.3.6(@types/react@18.2.79)(react@18.3.1) react-style-singleton: 2.2.1(@types/react@18.2.79)(react@18.3.1) - tslib: 2.6.3 + tslib: 2.8.1 use-callback-ref: 1.3.2(@types/react@18.2.79)(react@18.3.1) use-sidecar: 1.1.2(@types/react@18.2.79)(react@18.3.1) dev: true @@ -38085,7 +38194,7 @@ packages: get-nonce: 1.0.1 invariant: 2.2.4 react: 18.3.1 - tslib: 2.6.3 + tslib: 2.8.1 dev: true /react-syntax-highlighter@15.5.0(react@18.3.1): @@ -38917,8 +39026,8 @@ packages: resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} dev: true - /rsbuild-plugin-dts@0.1.2(@rsbuild/core@1.1.7)(typescript@5.5.2): - resolution: {integrity: sha512-dktQXqnrldvBnXaBaquy/ZX4HvvDMaNMX8vXHKlIhmbXIVSK+PtkgVTAeBJX2f++hWj2aSxyTbpz6Va7PoawEA==} + /rsbuild-plugin-dts@0.1.5(@rsbuild/core@1.1.12)(typescript@5.5.2): + resolution: {integrity: sha512-p5xN+Cxv59Pk7dHZJk3ca6ryycPfIbyVPk0KWuanLE0/c2s2A5KNJCB/Qyc/MZTYEXhcJNS8FTKxEMXXJGYwvA==} engines: {node: '>=16.0.0'} peerDependencies: '@microsoft/api-extractor': ^7 @@ -38930,14 +39039,14 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.7 - magic-string: 0.30.14 + '@rsbuild/core': 1.1.12 + magic-string: 0.30.17 picocolors: 1.1.1 tinyglobby: 0.2.10 typescript: 5.5.2 dev: true - /rsbuild-plugin-html-minifier-terser@1.1.1(@rsbuild/core@1.1.1): + /rsbuild-plugin-html-minifier-terser@1.1.1(@rsbuild/core@1.1.7): resolution: {integrity: sha512-rbDLv+XmGeSQo9JWKSwBst3Qwx1opLqtQCnQ3t9Z0F0ZTxKOC1S/ypPv5tSn/S3GMHct5Yb76mMgh6p80hjOAQ==} peerDependencies: '@rsbuild/core': 1.x || ^1.0.1-beta.0 @@ -38945,7 +39054,7 @@ packages: '@rsbuild/core': optional: true dependencies: - '@rsbuild/core': 1.1.1 + '@rsbuild/core': 1.1.7 '@types/html-minifier-terser': 7.0.2 html-minifier-terser: 7.2.0 dev: true @@ -39522,7 +39631,7 @@ packages: klona: 2.0.6 neo-async: 2.6.2 sass: 1.79.4 - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /sass-loader@13.3.3(webpack@5.93.0): resolution: {integrity: sha512-mt5YN2F1MOZr3d/wBRcZxeFgwgkH44wVc2zohO2YF6JiOMkiXe4BYRZpSu2sO1g71mo/j16txzUhsKZlqjVGzA==} @@ -39645,7 +39754,7 @@ packages: '@semantic-release/release-notes-generator': 14.0.1(semantic-release@24.1.2) aggregate-error: 5.0.0 cosmiconfig: 9.0.0(typescript@5.5.2) - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) env-ci: 11.1.0 execa: 9.4.0 figures: 6.1.0 @@ -39756,7 +39865,7 @@ packages: resolution: {integrity: sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==} engines: {node: '>= 18'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) destroy: 1.2.0 encodeurl: 2.0.0 escape-html: 1.0.3 @@ -40053,7 +40162,7 @@ packages: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} dependencies: dot-case: 3.0.4 - tslib: 2.6.3 + tslib: 2.8.1 /snapdragon-node@2.1.1: resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==} @@ -40240,7 +40349,7 @@ packages: /spdy-transport@3.0.0: resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) detect-node: 2.1.0 hpack.js: 2.1.6 obuf: 1.1.2 @@ -40253,7 +40362,7 @@ packages: resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==} engines: {node: '>=6.0.0'} dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) handle-thing: 2.0.1 http-deceiver: 1.2.7 select-hose: 2.0.0 @@ -40350,7 +40459,7 @@ packages: dependencies: graceful-fs: 4.2.11 - /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.1)(@rslib/core@0.1.2)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): + /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.7)(@rslib/core@0.1.5)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): resolution: {integrity: sha512-JXF2OZb3NXE7iYztLxiOTMP1j2BGHSNhREu+5LCjsOXxXFXiJrh4T8OeVLKsg7FlBSfnTkALSra0vHHnerFlfA==} engines: {node: '>=18.0.0'} peerDependencies: @@ -40362,13 +40471,13 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.1 - '@rslib/core': 0.1.2(typescript@5.5.2) - storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) + '@rsbuild/core': 1.1.7 + '@rslib/core': 0.1.5(typescript@5.5.2) + storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) typescript: 5.5.2 dev: true - /storybook-builder-rsbuild@0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2): + /storybook-builder-rsbuild@0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2): resolution: {integrity: sha512-g8/pVX+2YixHpWt/Q8dQWtkuKpWKxm1i9h+ihTFPO5LQWc3HvlF6PAXccPvedicLizGR2xTaI/RcJkE+2bYXqA==} peerDependencies: '@rsbuild/core': ^1.0.1 @@ -40378,8 +40487,8 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.1 - '@rsbuild/plugin-type-check': 1.0.1(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2) + '@rsbuild/core': 1.1.7 + '@rsbuild/plugin-type-check': 1.0.1(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2) '@storybook/addon-docs': 8.3.5(storybook@8.4.2) '@storybook/core-webpack': 8.3.5(storybook@8.4.2) browser-assert: 1.2.1 @@ -40391,7 +40500,7 @@ packages: magic-string: 0.30.12 path-browserify: 1.0.1 process: 0.11.10 - rsbuild-plugin-html-minifier-terser: 1.1.1(@rsbuild/core@1.1.1) + rsbuild-plugin-html-minifier-terser: 1.1.1(@rsbuild/core@1.1.7) sirv: 2.0.4 storybook: 8.4.2(prettier@3.3.3) ts-dedent: 2.2.0 @@ -40407,7 +40516,7 @@ packages: - webpack-sources dev: true - /storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0): + /storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0): resolution: {integrity: sha512-Cy7Ms5COLR1FTelGRxS5pE9LVlDSvaJeBsTH2MVi/29ZK8UEE0VH+Mnve2MboB93GbC3fhZFtIcNSF2dy9pjTw==} engines: {node: '>=18.0.0'} peerDependencies: @@ -40421,7 +40530,7 @@ packages: optional: true dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.24.0) - '@rsbuild/core': 1.1.1 + '@rsbuild/core': 1.1.7 '@storybook/react': 8.3.5(react-dom@18.3.1)(react@18.3.1)(storybook@8.4.2)(typescript@5.5.2) '@storybook/react-docgen-typescript-plugin': 1.0.1(typescript@5.5.2)(webpack@5.93.0) '@types/node': 18.16.9 @@ -40432,7 +40541,7 @@ packages: react-dom: 18.3.1(react@18.3.1) resolve: 1.22.8 storybook: 8.4.2(prettier@3.3.3) - storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.1)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) + storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) tsconfig-paths: 4.2.0 typescript: 5.5.2 transitivePeerDependencies: @@ -40523,7 +40632,7 @@ packages: engines: {node: '>=8.0'} dependencies: date-format: 4.0.14 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) fs-extra: 8.1.0 transitivePeerDependencies: - supports-color @@ -40775,7 +40884,7 @@ packages: peerDependencies: webpack: ^5.0.0 dependencies: - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /style-to-object@0.3.0: resolution: {integrity: sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==} @@ -40947,7 +41056,7 @@ packages: hasBin: true dependencies: '@adobe/css-tools': 4.3.3 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) glob: 10.4.5 sax: 1.4.1 source-map: 0.7.4 @@ -41014,7 +41123,6 @@ packages: /supports-color@9.3.1: resolution: {integrity: sha512-knBY82pjmnIzK3NifMo3RxEIRD9E0kIzV4BKcyTZ9+9kWgLMxd4PrsTSMoFQUabgRBbF8KOLRDCyKgNV+iK44Q==} engines: {node: '>=12'} - dev: true /supports-hyperlinks@2.3.0: resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} @@ -41478,13 +41586,13 @@ packages: dependencies: any-promise: 1.3.0 - /thingies@1.21.0(tslib@2.6.3): + /thingies@1.21.0(tslib@2.8.1): resolution: {integrity: sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g==} engines: {node: '>=10.18'} peerDependencies: tslib: ^2 dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /thread-stream@0.15.2: resolution: {integrity: sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==} @@ -41695,13 +41803,13 @@ packages: engines: {node: '>= 0.4'} dev: true - /tree-dump@1.0.2(tslib@2.6.3): + /tree-dump@1.0.2(tslib@2.8.1): resolution: {integrity: sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ==} engines: {node: '>=10.0'} peerDependencies: tslib: '2' dependencies: - tslib: 2.6.3 + tslib: 2.8.1 /tree-kill@1.2.2: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} @@ -42075,7 +42183,6 @@ packages: /tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - dev: true /tsscmp@1.0.6: resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==} @@ -42101,7 +42208,7 @@ packages: bundle-require: 4.2.1(esbuild@0.18.20) cac: 6.7.14 chokidar: 3.6.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) esbuild: 0.18.20 execa: 5.1.1 globby: 11.1.0 @@ -42143,7 +42250,7 @@ packages: cac: 6.7.14 chokidar: 3.6.0 consola: 3.2.3 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) esbuild: 0.23.0 execa: 5.1.1 joycon: 3.1.1 @@ -42765,7 +42872,7 @@ packages: dependencies: '@types/react': 18.2.79 react: 18.3.1 - tslib: 2.6.3 + tslib: 2.8.1 /use-resize-observer@9.1.0(react-dom@18.3.1)(react@18.3.1): resolution: {integrity: sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==} @@ -42791,7 +42898,7 @@ packages: '@types/react': 18.2.79 detect-node-es: 1.1.0 react: 18.3.1 - tslib: 2.6.3 + tslib: 2.8.1 /use-sync-external-store@1.2.2(react@18.3.1): resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==} @@ -42945,7 +43052,7 @@ packages: compression: 1.7.4 cookies: 0.9.1 cors: 2.8.5 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) envinfo: 7.11.0 express: 4.18.2 express-rate-limit: 5.5.1 @@ -43060,7 +43167,7 @@ packages: hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) pathe: 1.1.2 picocolors: 1.1.1 vite: 5.2.14(@types/node@20.12.14)(less@4.2.0)(stylus@0.64.0) @@ -43081,7 +43188,7 @@ packages: hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) pathe: 1.1.2 picocolors: 1.1.1 vite: 5.2.14(@types/node@18.16.9)(less@4.2.0)(stylus@0.64.0) @@ -43111,7 +43218,7 @@ packages: '@volar/typescript': 2.4.5 '@vue/language-core': 2.1.6(typescript@5.5.2) compare-versions: 6.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) kolorist: 1.8.0 local-pkg: 0.5.0 magic-string: 0.30.12 @@ -43138,7 +43245,7 @@ packages: '@volar/typescript': 2.4.5 '@vue/language-core': 2.1.6(typescript@5.5.2) compare-versions: 6.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) kolorist: 1.8.0 local-pkg: 0.5.0 magic-string: 0.30.12 @@ -43158,7 +43265,7 @@ packages: vite: optional: true dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) globrex: 0.1.2 tsconfck: 2.1.2(typescript@5.5.2) vite: 5.2.14(@types/node@18.16.9)(less@4.2.0)(stylus@0.64.0) @@ -43328,7 +43435,7 @@ packages: acorn-walk: 8.3.4 cac: 6.7.14 chai: 4.5.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.11 @@ -43385,7 +43492,7 @@ packages: '@vitest/utils': 1.6.0 acorn-walk: 8.3.4 chai: 4.5.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.11 @@ -43434,7 +43541,7 @@ packages: peerDependencies: eslint: '>=6.0.0' dependencies: - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.3.1) eslint: 8.57.1 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -43638,7 +43745,7 @@ packages: on-finished: 2.4.1 range-parser: 1.2.1 schema-utils: 4.2.0 - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /webpack-dev-server@5.0.4(webpack@5.93.0): resolution: {integrity: sha512-dljXhUgx3HqKP2d8J/fUMvhxGhzjeNVarDLcbO/EWMSgRizDkxHQDZQaLFL5VJY9tRBj2Gz+rvCEYYvhbqPHNA==} @@ -43791,7 +43898,7 @@ packages: dependencies: html-webpack-plugin: 5.6.2(@rspack/core@1.0.8)(webpack@5.93.0) typed-assert: 1.0.9 - webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.24.0) + webpack: 5.93.0(@swc/core@1.7.26)(esbuild@0.18.20) /webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.6.3)(webpack@5.95.0): resolution: {integrity: sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q==} From 19abee0572f673282aaf135ad6bca5c899e1d549 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Tue, 24 Dec 2024 17:22:35 +0800 Subject: [PATCH 3/6] chore: ignore types --- packages/modernjs/src/cli/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/modernjs/src/cli/utils.ts b/packages/modernjs/src/cli/utils.ts index fd85f5746ff..5279a3233a0 100644 --- a/packages/modernjs/src/cli/utils.ts +++ b/packages/modernjs/src/cli/utils.ts @@ -302,6 +302,7 @@ export function patchBundlerConfig(options: { } if (!isServer) { + // @ts-ignore autoDeleteSplitChunkCacheGroups(mfConfig, bundlerConfig); } From 2423db9b82c37a445a0969a3a33cc8eb33181306 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Tue, 24 Dec 2024 21:25:42 +0800 Subject: [PATCH 4/6] chore: adjust hook --- apps/rslib-module/package.json | 4 +- packages/rsbuild-plugin/src/cli/index.ts | 27 +- pnpm-lock.yaml | 318 ++++++++--------------- 3 files changed, 122 insertions(+), 227 deletions(-) diff --git a/apps/rslib-module/package.json b/apps/rslib-module/package.json index d3d569f2645..b17a32e469d 100644 --- a/apps/rslib-module/package.json +++ b/apps/rslib-module/package.json @@ -13,7 +13,7 @@ "types": "./dist/cjs/index.d.ts", "scripts": { "build": "rslib build", - "dev": "rslib mf dev", + "dev": "rslib mf-dev", "build:watch": "rslib build --watch", "serve": "pnpm build && http-server -p 3001 ./dist/ --cors", "storybook": "storybook dev -p 6006" @@ -23,7 +23,7 @@ "@module-federation/rsbuild-plugin": "workspace:*", "@module-federation/storybook-addon": "workspace:*", "@rsbuild/plugin-react": "^1.0.6", - "@rslib/core": "^0.1.5", + "@rslib/core": "0.2.0", "@types/react": "^18.3.11", "http-server": "^14.1.1", "react": "^18.3.1", diff --git a/packages/rsbuild-plugin/src/cli/index.ts b/packages/rsbuild-plugin/src/cli/index.ts index 4be614bf539..21cb9478710 100644 --- a/packages/rsbuild-plugin/src/cli/index.ts +++ b/packages/rsbuild-plugin/src/cli/index.ts @@ -12,7 +12,7 @@ import type { moduleFederationPlugin, sharePlugin, } from '@module-federation/sdk'; -import type { RsbuildPlugin } from '@rsbuild/core'; +import type { RsbuildPlugin, Rspack } from '@rsbuild/core'; import logger from '../logger'; type ModuleFederationOptions = @@ -28,7 +28,18 @@ export { PLUGIN_NAME, }; -export const LIB_FORMAT = ['commonjs', 'umd', 'modern-module']; +const LIB_FORMAT = ['commonjs', 'umd', 'modern-module']; + +export function isMFFormat(bundlerConfig: Rspack.Configuration) { + const library = bundlerConfig.output?.library; + + return !( + typeof library === 'object' && + !Array.isArray(library) && + 'type' in library && + LIB_FORMAT.includes(library.type) + ); +} export const pluginModuleFederation = ( moduleFederationOptions: ModuleFederationOptions, @@ -59,15 +70,11 @@ export const pluginModuleFederation = ( ); api.onBeforeCreateCompiler(({ bundlerConfigs }) => { + if (!bundlerConfigs) { + throw new Error('Can not get bundlerConfigs!'); + } bundlerConfigs.forEach((bundlerConfig) => { - const library = bundlerConfig.output?.library; - // lib format - if ( - typeof library === 'object' && - !Array.isArray(library) && - 'type' in library && - LIB_FORMAT.includes(library.type) - ) { + if (!isMFFormat(bundlerConfig)) { return; } else { // mf diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 76bf1b8eb6a..49f9109c1a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1618,10 +1618,10 @@ importers: version: link:../../packages/storybook-addon '@rsbuild/plugin-react': specifier: ^1.0.6 - version: 1.0.6(@rsbuild/core@1.1.7) + version: 1.0.6(@rsbuild/core@1.1.12) '@rslib/core': - specifier: ^0.1.5 - version: 0.1.5(typescript@5.5.2) + specifier: 0.2.0 + version: 0.2.0(typescript@5.5.2) '@types/react': specifier: ^18.3.11 version: 18.3.11 @@ -1639,10 +1639,10 @@ importers: version: 8.4.2(prettier@3.3.3) storybook-addon-rslib: specifier: ^0.1.4 - version: 0.1.4(@rsbuild/core@1.1.7)(@rslib/core@0.1.5)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) + version: 0.1.4(@rsbuild/core@1.1.12)(@rslib/core@0.2.0)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2) storybook-react-rsbuild: specifier: ^0.1.5 - version: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0) + version: 0.1.5(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0) apps/runtime-demo/3005-runtime-host: dependencies: @@ -2939,7 +2939,7 @@ packages: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 1.9.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 lodash: 4.17.21 @@ -2965,7 +2965,7 @@ packages: '@babel/traverse': 7.25.7 '@babel/types': 7.25.7 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -2987,7 +2987,7 @@ packages: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3010,7 +3010,7 @@ packages: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3033,7 +3033,7 @@ packages: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -3288,7 +3288,7 @@ packages: '@babel/core': 7.25.7 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -3303,7 +3303,7 @@ packages: '@babel/core': 7.26.0 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -6376,7 +6376,7 @@ packages: '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -6390,7 +6390,7 @@ packages: '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -8579,7 +8579,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.2 @@ -8655,7 +8655,7 @@ packages: deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -11703,7 +11703,7 @@ packages: '@open-draft/until': 1.0.3 '@types/debug': 4.1.12 '@xmldom/xmldom': 0.8.10 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) headers-polyfill: 3.2.5 outvariant: 1.4.3 strict-event-emitter: 0.2.8 @@ -15311,17 +15311,6 @@ packages: core-js: 3.39.0 dev: true - /@rsbuild/core@1.1.7: - resolution: {integrity: sha512-YI8qGKa37e5X3av4cB4i06MZv89URW39SrfNqTR6Td7VPznX+n4pHcrYqj86sEM2/XPX57/UL9Hi/Nhu+A003g==} - engines: {node: '>=16.7.0'} - hasBin: true - dependencies: - '@rspack/core': 1.1.5(@swc/helpers@0.5.15) - '@rspack/lite-tapable': 1.0.1 - '@swc/helpers': 0.5.15 - core-js: 3.39.0 - dev: true - /@rsbuild/plugin-assets-retry@1.0.2(@rsbuild/core@1.0.19): resolution: {integrity: sha512-vlQwCFibONxquQmQwDDv/crivmXAct8nsUtSovlgoMHE4UUQKFZbJ7jr54FVXvDlyL/Wp9yvOj4WhAEabBEVlA==} peerDependencies: @@ -15546,12 +15535,12 @@ packages: '@rspack/plugin-react-refresh': 1.0.0(react-refresh@0.14.2) react-refresh: 0.14.2 - /@rsbuild/plugin-react@1.0.6(@rsbuild/core@1.1.7): + /@rsbuild/plugin-react@1.0.6(@rsbuild/core@1.1.12): resolution: {integrity: sha512-k2VS7nvNm74DlVQROK+w+Ua1j60n3qSnVFva8zjmj6uakLCxxp85aRwfEHzaVP/YdDLffweypROuQPYvTZ57ew==} peerDependencies: '@rsbuild/core': 1.x dependencies: - '@rsbuild/core': 1.1.7 + '@rsbuild/core': 1.1.12 '@rspack/plugin-react-refresh': 1.0.0(react-refresh@0.14.2) react-refresh: 0.14.2 dev: true @@ -15734,7 +15723,7 @@ packages: - webpack-cli dev: true - /@rsbuild/plugin-type-check@1.0.1(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2): + /@rsbuild/plugin-type-check@1.0.1(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2): resolution: {integrity: sha512-BahXAJNq4kWtL2dINUlrOL9UCN1t8c/qf5RW8JXx2HSSasfKPJGJ1BVfieMcIaFa/t8/QdafcwoxY1WKPTlSMg==} peerDependencies: '@rsbuild/core': 1.x || ^1.0.1-beta.0 @@ -15742,7 +15731,7 @@ packages: '@rsbuild/core': optional: true dependencies: - '@rsbuild/core': 1.1.7 + '@rsbuild/core': 1.1.12 deepmerge: 4.3.1 fork-ts-checker-webpack-plugin: 9.0.2(typescript@5.5.2)(webpack@5.95.0) json5: 2.2.3 @@ -15881,8 +15870,8 @@ packages: - webpack-cli dev: true - /@rslib/core@0.1.5(typescript@5.5.2): - resolution: {integrity: sha512-m0OPJNy5ZZqqKDNWTdiG8GELgg++77Ndx3Op48mHMZ1aUSknqwKm59Rya/nZr/6fc3rvos1YM5FogXQ3/pt1/A==} + /@rslib/core@0.2.0(typescript@5.5.2): + resolution: {integrity: sha512-SuqdKdHdXrdN2FgVzrb+RShl6op608FZ1mOd8NX4H8lGp6E+CAAL9gnH/H4n7ahBQvM1920w1WTmaYZPyhhLUg==} engines: {node: '>=16.0.0'} hasBin: true peerDependencies: @@ -15895,7 +15884,7 @@ packages: optional: true dependencies: '@rsbuild/core': 1.1.12 - rsbuild-plugin-dts: 0.1.5(@rsbuild/core@1.1.12)(typescript@5.5.2) + rsbuild-plugin-dts: 0.2.0(@rsbuild/core@1.1.12)(typescript@5.5.2) tinyglobby: 0.2.10 typescript: 5.5.2 dev: true @@ -15946,14 +15935,6 @@ packages: dev: true optional: true - /@rspack/binding-darwin-arm64@1.1.5: - resolution: {integrity: sha512-eEynmyPPl+OGYQ9LRFwiQosyRfcca3OQB73akqY4mqDRl39OyiBjq7347DLHJysgbm9z+B1bsiLuh2xc6mdclQ==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-darwin-arm64@1.1.8: resolution: {integrity: sha512-I7avr471ghQ3LAqKm2fuXuJPLgQ9gffn5Q4nHi8rsukuZUtiLDPfYzK1QuupEp2JXRWM1gG5lIbSUOht3cD6Ug==} cpu: [arm64] @@ -16008,14 +15989,6 @@ packages: dev: true optional: true - /@rspack/binding-darwin-x64@1.1.5: - resolution: {integrity: sha512-I6HPRgogewU5v1OKe3noEzq2U1FCEYAbW+smy+lPvpTW+3X6PlVMzTT4oelhB0EXDQ+KxjXH9KpOKON1hg/JGg==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-darwin-x64@1.1.8: resolution: {integrity: sha512-vfqf/c+mcx8rr1M8LnqKmzDdnrgguflZnjGerBLjNerAc+dcUp3lCvNxRIvZ2TkSZZBW8BpCMgjj3n70CZ4VLQ==} cpu: [x64] @@ -16070,14 +16043,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-arm64-gnu@1.1.5: - resolution: {integrity: sha512-LQnqucNa6Dr6y3By+/M2ARO4jDR3AM+PuCsHgzlYT0RDRLS+Ow3f50WbNBf7eI/DhrEA0aucYL3sz1ljguB3EA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-arm64-gnu@1.1.8: resolution: {integrity: sha512-lZlO/rAJSeozi+qtVLkGSXfe+riPawCwM4FsrflELfNlvvEXpANwtrdJ+LsaNVXcgvhh50ZX2KicTdmx9G2b6Q==} cpu: [arm64] @@ -16132,14 +16097,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-arm64-musl@1.1.5: - resolution: {integrity: sha512-b9L/9HJxrWY4cezPWqgj28I9Xe2XxwLHu8x0CMGobwF2XKR0QQVLAst38RW/EusJ8TURdyvNEOuRZlWEIJuYOw==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-arm64-musl@1.1.8: resolution: {integrity: sha512-bX7exULSZwy8xtDh6Z65b6sRC4uSxGuyvSLCEKyhmG6AnJkg0gQMxk3hoO0hWnyGEZgdJEn+jEhk0fjl+6ZRAQ==} cpu: [arm64] @@ -16194,14 +16151,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-x64-gnu@1.1.5: - resolution: {integrity: sha512-0az52ZXTg/ErCGC1v/oFLWByKAiXvng4euv+prwMWF6p1pA7lfLRLzdibDFO4KgC16Zlfcg3hqs7YikLng4x+w==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-x64-gnu@1.1.8: resolution: {integrity: sha512-2Prw2USgTJ3aLdLExfik8pAwAHbX4MZrACBGEmR7Vbb56kLjC+++fXkciRc50pUDK4JFr1VQ7eNZrJuDR6GG6Q==} cpu: [x64] @@ -16256,14 +16205,6 @@ packages: dev: true optional: true - /@rspack/binding-linux-x64-musl@1.1.5: - resolution: {integrity: sha512-EF/LJTtCTkuti2gJnCyvXHC5Q2L5M4+RXm5kj9Bfu/t0Zmmfe6Jd5QUsifgogioeL0ZsH/Pou5QiiVcOFcqFKQ==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-linux-x64-musl@1.1.8: resolution: {integrity: sha512-bnVGB/mQBKEdzOU/CPmcOE3qEXxGOGGW7/i6iLl2MamVOykJq8fYjL9j86yi6L0r009ja16OgWckykQGc4UqGw==} cpu: [x64] @@ -16318,14 +16259,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-arm64-msvc@1.1.5: - resolution: {integrity: sha512-VEqhK6HwIHby6gtOkxIx66SkqYndiaP1ddZ3X39RLE40TY3KlNgfG/SzbN9J5Qb+8jjq3ogV8n50+wLEGkhiWw==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-arm64-msvc@1.1.8: resolution: {integrity: sha512-u+na3gxhzeksm4xZyAzn1+XWo5a5j7hgWA/KcFPDQ8qQNkRknx4jnQMxVtcZ9pLskAYV4AcOV/AIximx7zvv8A==} cpu: [arm64] @@ -16380,14 +16313,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-ia32-msvc@1.1.5: - resolution: {integrity: sha512-Yi2BwYehc5/sRVgI7zTGYJKjnV8UszAJt/stWdFHaq82chHiuuF/tQd1WcBUq0Iin9ylBMo16mRJAuFkFmJ74Q==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-ia32-msvc@1.1.8: resolution: {integrity: sha512-FijUxym1INd5fFHwVCLuVP8XEAb4Sk1sMwEEQUlugiDra9ZsLaPw4OgPGxbxkD6SB0DeUz9Zq46Xbcf6d3OgfA==} cpu: [ia32] @@ -16442,14 +16367,6 @@ packages: dev: true optional: true - /@rspack/binding-win32-x64-msvc@1.1.5: - resolution: {integrity: sha512-4UArXYqJO1Ni7TmCw1T11JnrwfpoThDdiQ9k1P1voBWK3bDahPEBOptk9ZPu2+ZuRX8hFrvumRKkLY3oy7fTMw==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@rspack/binding-win32-x64-msvc@1.1.8: resolution: {integrity: sha512-SBzIcND4qpDt71jlu1MCDxt335tqInT3YID9V4DoQ4t8wgM/uad7EgKOWKTK6vc2RRaOIShfS2XzqjNUxPXh4w==} cpu: [x64] @@ -16540,20 +16457,6 @@ packages: '@rspack/binding-win32-x64-msvc': 1.1.1 dev: true - /@rspack/binding@1.1.5: - resolution: {integrity: sha512-RsSkgi56Q5XUXut0qweLSE1C4Ogcm7g/ueKoOgsbHAYVKrCs9/dTFlPHWSIAaI7QWh0GWEePR/MM2O2HIu+1rw==} - optionalDependencies: - '@rspack/binding-darwin-arm64': 1.1.5 - '@rspack/binding-darwin-x64': 1.1.5 - '@rspack/binding-linux-arm64-gnu': 1.1.5 - '@rspack/binding-linux-arm64-musl': 1.1.5 - '@rspack/binding-linux-x64-gnu': 1.1.5 - '@rspack/binding-linux-x64-musl': 1.1.5 - '@rspack/binding-win32-arm64-msvc': 1.1.5 - '@rspack/binding-win32-ia32-msvc': 1.1.5 - '@rspack/binding-win32-x64-msvc': 1.1.5 - dev: true - /@rspack/binding@1.1.8: resolution: {integrity: sha512-+/JzXx1HctfgPj+XtsCTbRkxiaOfAXGZZLEvs7jgp04WgWRSZ5u97WRCePNPvy+sCfOEH/2zw2ZK36Z7oQRGhQ==} optionalDependencies: @@ -16699,22 +16602,6 @@ packages: caniuse-lite: 1.0.30001668 dev: true - /@rspack/core@1.1.5(@swc/helpers@0.5.15): - resolution: {integrity: sha512-/FmxDeMuW8fJkhz8fHuCu7OiJHFKW78xclEu7LkEujWl4PqJgdWjUL/6FWIj50spRwj6PRfuc31hFSL4hbNfCA==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@swc/helpers': '>=0.5.1' - peerDependenciesMeta: - '@swc/helpers': - optional: true - dependencies: - '@module-federation/runtime-tools': 0.5.1 - '@rspack/binding': 1.1.5 - '@rspack/lite-tapable': 1.0.1 - '@swc/helpers': 0.5.15 - caniuse-lite: 1.0.30001668 - dev: true - /@rspack/core@1.1.8(@swc/helpers@0.5.15): resolution: {integrity: sha512-pcZtcj5iXLCuw9oElTYC47bp/RQADm/MMEb3djHdwJuSlFWfWPQi5QFgJ/lJAxIW9UNHnTFrYtytycfjpuoEcA==} engines: {node: '>=16.0.0'} @@ -17165,7 +17052,7 @@ packages: conventional-changelog-writer: 8.0.0 conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) import-from-esm: 1.3.4 lodash-es: 4.17.21 micromatch: 4.0.8 @@ -17192,7 +17079,7 @@ packages: dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) execa: 5.1.1 lodash: 4.17.21 parse-json: 5.2.0 @@ -17209,7 +17096,7 @@ packages: dependencies: '@semantic-release/error': 3.0.0 aggregate-error: 3.1.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) dir-glob: 3.0.1 execa: 5.1.1 lodash: 4.17.21 @@ -17232,7 +17119,7 @@ packages: '@octokit/plugin-throttling': 9.3.1(@octokit/core@6.1.2) '@semantic-release/error': 4.0.0 aggregate-error: 5.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) dir-glob: 3.0.1 globby: 14.0.2 http-proxy-agent: 7.0.2 @@ -17301,7 +17188,7 @@ packages: conventional-changelog-writer: 8.0.0 conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.0.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) get-stream: 7.0.1 import-from-esm: 1.3.4 into-stream: 7.0.0 @@ -18509,7 +18396,7 @@ packages: typescript: '>= 3.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 @@ -18528,7 +18415,7 @@ packages: typescript: '>= 4.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 @@ -18547,7 +18434,7 @@ packages: typescript: '>= 4.x' webpack: '>= 4' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.2.0 @@ -19025,7 +18912,7 @@ packages: '@swc-node/sourcemap-support': 0.5.1 '@swc/core': 1.7.26(@swc/helpers@0.5.13) colorette: 2.0.20 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) oxc-resolver: 1.12.0 pirates: 4.0.6 tslib: 2.6.3 @@ -20268,7 +20155,7 @@ packages: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.2 @@ -20320,7 +20207,7 @@ packages: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 typescript: 5.0.4 transitivePeerDependencies: @@ -20341,7 +20228,7 @@ packages: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.2) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 typescript: 5.5.2 transitivePeerDependencies: @@ -20362,7 +20249,7 @@ packages: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.2) '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 typescript: 5.5.2 transitivePeerDependencies: @@ -20421,7 +20308,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.0.4) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 tsutils: 3.21.0(typescript@5.0.4) typescript: 5.0.4 @@ -20441,7 +20328,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.5.2) '@typescript-eslint/utils': 7.18.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 ts-api-utils: 1.3.0(typescript@5.5.2) typescript: 5.5.2 @@ -20460,7 +20347,7 @@ packages: dependencies: '@typescript-eslint/typescript-estree': 8.8.0(typescript@5.5.2) '@typescript-eslint/utils': 8.8.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) ts-api-utils: 1.3.0(typescript@5.5.2) typescript: 5.5.2 transitivePeerDependencies: @@ -20504,7 +20391,7 @@ packages: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.6.3 @@ -20525,7 +20412,7 @@ packages: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -20547,7 +20434,7 @@ packages: dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20569,7 +20456,7 @@ packages: dependencies: '@typescript-eslint/types': 8.14.0 '@typescript-eslint/visitor-keys': 8.14.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20591,7 +20478,7 @@ packages: dependencies: '@typescript-eslint/types': 8.8.0 '@typescript-eslint/visitor-keys': 8.8.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.5 @@ -20941,7 +20828,7 @@ packages: peerDependencies: vitest: 1.6.0 dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 @@ -20962,7 +20849,7 @@ packages: dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -21724,7 +21611,7 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -21732,7 +21619,7 @@ packages: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} engines: {node: '>= 14'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color dev: true @@ -25354,7 +25241,6 @@ packages: dependencies: ms: 2.1.3 supports-color: 8.1.1 - dev: true /debug@4.3.7(supports-color@9.3.1): resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} @@ -25367,6 +25253,7 @@ packages: dependencies: ms: 2.1.3 supports-color: 9.3.1 + dev: true /decimal.js@10.4.3: resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} @@ -25613,7 +25500,7 @@ packages: hasBin: true dependencies: address: 1.2.2 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -26298,7 +26185,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) esbuild: 0.17.19 transitivePeerDependencies: - supports-color @@ -26309,7 +26196,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) esbuild: 0.18.20 transitivePeerDependencies: - supports-color @@ -26320,7 +26207,7 @@ packages: peerDependencies: esbuild: '>=0.12 <1' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) esbuild: 0.23.1 transitivePeerDependencies: - supports-color @@ -26709,7 +26596,7 @@ packages: optional: true dependencies: '@nolyfill/is-core-module': 1.0.39 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) enhanced-resolve: 5.17.1 eslint: 8.57.1 eslint-module-utils: 2.12.0(@typescript-eslint/parser@7.18.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) @@ -27139,7 +27026,7 @@ packages: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -28071,7 +27958,7 @@ packages: debug: optional: true dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} @@ -29645,7 +29532,7 @@ packages: dependencies: '@tootallnate/once': 2.0.0 agent-base: 6.0.2 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color dev: true @@ -29655,7 +29542,7 @@ packages: engines: {node: '>= 14'} dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color dev: true @@ -29683,7 +29570,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@types/http-proxy': 1.17.15 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) http-proxy: 1.18.1(debug@4.3.7) is-glob: 4.0.3 is-plain-object: 5.0.0 @@ -29763,7 +29650,7 @@ packages: engines: {node: '>= 6.0.0'} dependencies: agent-base: 5.1.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color dev: true @@ -29773,7 +29660,7 @@ packages: engines: {node: '>= 6'} dependencies: agent-base: 6.0.2 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -29782,7 +29669,7 @@ packages: engines: {node: '>= 14'} dependencies: agent-base: 7.1.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) transitivePeerDependencies: - supports-color dev: true @@ -29922,7 +29809,7 @@ packages: resolution: {integrity: sha512-7EyUlPFC0HOlBDpUFGfYstsU7XHxZJKAAMzCT8wZ0hMW7b+hG51LIKTDcsgtz8Pu6YC0HqRVbX+rVUtsGMUKvg==} engines: {node: '>=16.20'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) import-meta-resolve: 4.1.0 transitivePeerDependencies: - supports-color @@ -30750,7 +30637,7 @@ packages: resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} engines: {node: '>=10'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 source-map: 0.6.1 transitivePeerDependencies: @@ -30762,7 +30649,7 @@ packages: engines: {node: '>=10'} dependencies: '@jridgewell/trace-mapping': 0.3.25 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -31795,7 +31682,7 @@ packages: content-disposition: 0.5.4 content-type: 1.0.5 cookies: 0.9.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) delegates: 1.0.0 depd: 2.0.0 destroy: 1.2.0 @@ -32252,7 +32139,7 @@ packages: engines: {node: '>=8.0'} dependencies: date-format: 4.0.14 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) flatted: 3.3.1 rfdc: 1.4.1 streamroller: 3.1.5 @@ -33113,7 +33000,7 @@ packages: resolution: {integrity: sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==} dependencies: '@types/debug': 4.1.12 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) decode-named-character-reference: 1.0.2 micromark-core-commonmark: 1.1.0 micromark-factory-space: 1.1.0 @@ -36677,7 +36564,7 @@ packages: engines: {node: '>=8.16.0'} dependencies: '@types/mime-types': 2.1.4 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) extract-zip: 1.7.0 https-proxy-agent: 4.0.0 mime: 2.6.0 @@ -39026,8 +38913,8 @@ packages: resolution: {integrity: sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==} dev: true - /rsbuild-plugin-dts@0.1.5(@rsbuild/core@1.1.12)(typescript@5.5.2): - resolution: {integrity: sha512-p5xN+Cxv59Pk7dHZJk3ca6ryycPfIbyVPk0KWuanLE0/c2s2A5KNJCB/Qyc/MZTYEXhcJNS8FTKxEMXXJGYwvA==} + /rsbuild-plugin-dts@0.2.0(@rsbuild/core@1.1.12)(typescript@5.5.2): + resolution: {integrity: sha512-62ioO9WoBeSzaE81Vq+MLJm0ZPdP8osyYnQLdy49pFHw8avhyR58NJdMevrwVC54k4ziaTQrTa4mAJwXN0Z62A==} engines: {node: '>=16.0.0'} peerDependencies: '@microsoft/api-extractor': ^7 @@ -39046,7 +38933,7 @@ packages: typescript: 5.5.2 dev: true - /rsbuild-plugin-html-minifier-terser@1.1.1(@rsbuild/core@1.1.7): + /rsbuild-plugin-html-minifier-terser@1.1.1(@rsbuild/core@1.1.12): resolution: {integrity: sha512-rbDLv+XmGeSQo9JWKSwBst3Qwx1opLqtQCnQ3t9Z0F0ZTxKOC1S/ypPv5tSn/S3GMHct5Yb76mMgh6p80hjOAQ==} peerDependencies: '@rsbuild/core': 1.x || ^1.0.1-beta.0 @@ -39054,7 +38941,7 @@ packages: '@rsbuild/core': optional: true dependencies: - '@rsbuild/core': 1.1.7 + '@rsbuild/core': 1.1.12 '@types/html-minifier-terser': 7.0.2 html-minifier-terser: 7.2.0 dev: true @@ -39754,7 +39641,7 @@ packages: '@semantic-release/release-notes-generator': 14.0.1(semantic-release@24.1.2) aggregate-error: 5.0.0 cosmiconfig: 9.0.0(typescript@5.5.2) - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) env-ci: 11.1.0 execa: 9.4.0 figures: 6.1.0 @@ -39865,7 +39752,7 @@ packages: resolution: {integrity: sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==} engines: {node: '>= 18'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) destroy: 1.2.0 encodeurl: 2.0.0 escape-html: 1.0.3 @@ -40349,7 +40236,7 @@ packages: /spdy-transport@3.0.0: resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) detect-node: 2.1.0 hpack.js: 2.1.6 obuf: 1.1.2 @@ -40362,7 +40249,7 @@ packages: resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==} engines: {node: '>=6.0.0'} dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) handle-thing: 2.0.1 http-deceiver: 1.2.7 select-hose: 2.0.0 @@ -40459,7 +40346,7 @@ packages: dependencies: graceful-fs: 4.2.11 - /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.7)(@rslib/core@0.1.5)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): + /storybook-addon-rslib@0.1.4(@rsbuild/core@1.1.12)(@rslib/core@0.2.0)(storybook-builder-rsbuild@0.1.5)(typescript@5.5.2): resolution: {integrity: sha512-JXF2OZb3NXE7iYztLxiOTMP1j2BGHSNhREu+5LCjsOXxXFXiJrh4T8OeVLKsg7FlBSfnTkALSra0vHHnerFlfA==} engines: {node: '>=18.0.0'} peerDependencies: @@ -40471,13 +40358,13 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.7 - '@rslib/core': 0.1.5(typescript@5.5.2) - storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) + '@rsbuild/core': 1.1.12 + '@rslib/core': 0.2.0(typescript@5.5.2) + storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) typescript: 5.5.2 dev: true - /storybook-builder-rsbuild@0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2): + /storybook-builder-rsbuild@0.1.5(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2): resolution: {integrity: sha512-g8/pVX+2YixHpWt/Q8dQWtkuKpWKxm1i9h+ihTFPO5LQWc3HvlF6PAXccPvedicLizGR2xTaI/RcJkE+2bYXqA==} peerDependencies: '@rsbuild/core': ^1.0.1 @@ -40487,8 +40374,8 @@ packages: typescript: optional: true dependencies: - '@rsbuild/core': 1.1.7 - '@rsbuild/plugin-type-check': 1.0.1(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2) + '@rsbuild/core': 1.1.12 + '@rsbuild/plugin-type-check': 1.0.1(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(typescript@5.5.2) '@storybook/addon-docs': 8.3.5(storybook@8.4.2) '@storybook/core-webpack': 8.3.5(storybook@8.4.2) browser-assert: 1.2.1 @@ -40500,7 +40387,7 @@ packages: magic-string: 0.30.12 path-browserify: 1.0.1 process: 0.11.10 - rsbuild-plugin-html-minifier-terser: 1.1.1(@rsbuild/core@1.1.7) + rsbuild-plugin-html-minifier-terser: 1.1.1(@rsbuild/core@1.1.12) sirv: 2.0.4 storybook: 8.4.2(prettier@3.3.3) ts-dedent: 2.2.0 @@ -40516,7 +40403,7 @@ packages: - webpack-sources dev: true - /storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0): + /storybook-react-rsbuild@0.1.5(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(react-dom@18.3.1)(react@18.3.1)(rollup@4.24.0)(storybook@8.4.2)(typescript@5.5.2)(webpack@5.93.0): resolution: {integrity: sha512-Cy7Ms5COLR1FTelGRxS5pE9LVlDSvaJeBsTH2MVi/29ZK8UEE0VH+Mnve2MboB93GbC3fhZFtIcNSF2dy9pjTw==} engines: {node: '>=18.0.0'} peerDependencies: @@ -40530,7 +40417,7 @@ packages: optional: true dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.24.0) - '@rsbuild/core': 1.1.7 + '@rsbuild/core': 1.1.12 '@storybook/react': 8.3.5(react-dom@18.3.1)(react@18.3.1)(storybook@8.4.2)(typescript@5.5.2) '@storybook/react-docgen-typescript-plugin': 1.0.1(typescript@5.5.2)(webpack@5.93.0) '@types/node': 18.16.9 @@ -40541,7 +40428,7 @@ packages: react-dom: 18.3.1(react@18.3.1) resolve: 1.22.8 storybook: 8.4.2(prettier@3.3.3) - storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.7)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) + storybook-builder-rsbuild: 0.1.5(@rsbuild/core@1.1.12)(@swc/core@1.7.26)(esbuild@0.18.20)(storybook@8.4.2)(typescript@5.5.2) tsconfig-paths: 4.2.0 typescript: 5.5.2 transitivePeerDependencies: @@ -40632,7 +40519,7 @@ packages: engines: {node: '>=8.0'} dependencies: date-format: 4.0.14 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) fs-extra: 8.1.0 transitivePeerDependencies: - supports-color @@ -41056,7 +40943,7 @@ packages: hasBin: true dependencies: '@adobe/css-tools': 4.3.3 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) glob: 10.4.5 sax: 1.4.1 source-map: 0.7.4 @@ -41123,6 +41010,7 @@ packages: /supports-color@9.3.1: resolution: {integrity: sha512-knBY82pjmnIzK3NifMo3RxEIRD9E0kIzV4BKcyTZ9+9kWgLMxd4PrsTSMoFQUabgRBbF8KOLRDCyKgNV+iK44Q==} engines: {node: '>=12'} + dev: true /supports-hyperlinks@2.3.0: resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} @@ -42208,7 +42096,7 @@ packages: bundle-require: 4.2.1(esbuild@0.18.20) cac: 6.7.14 chokidar: 3.6.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) esbuild: 0.18.20 execa: 5.1.1 globby: 11.1.0 @@ -42250,7 +42138,7 @@ packages: cac: 6.7.14 chokidar: 3.6.0 consola: 3.2.3 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) esbuild: 0.23.0 execa: 5.1.1 joycon: 3.1.1 @@ -43052,7 +42940,7 @@ packages: compression: 1.7.4 cookies: 0.9.1 cors: 2.8.5 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) envinfo: 7.11.0 express: 4.18.2 express-rate-limit: 5.5.1 @@ -43167,7 +43055,7 @@ packages: hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.1.1 vite: 5.2.14(@types/node@20.12.14)(less@4.2.0)(stylus@0.64.0) @@ -43188,7 +43076,7 @@ packages: hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.1.1 vite: 5.2.14(@types/node@18.16.9)(less@4.2.0)(stylus@0.64.0) @@ -43218,7 +43106,7 @@ packages: '@volar/typescript': 2.4.5 '@vue/language-core': 2.1.6(typescript@5.5.2) compare-versions: 6.1.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) kolorist: 1.8.0 local-pkg: 0.5.0 magic-string: 0.30.12 @@ -43245,7 +43133,7 @@ packages: '@volar/typescript': 2.4.5 '@vue/language-core': 2.1.6(typescript@5.5.2) compare-versions: 6.1.1 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) kolorist: 1.8.0 local-pkg: 0.5.0 magic-string: 0.30.12 @@ -43265,7 +43153,7 @@ packages: vite: optional: true dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) globrex: 0.1.2 tsconfck: 2.1.2(typescript@5.5.2) vite: 5.2.14(@types/node@18.16.9)(less@4.2.0)(stylus@0.64.0) @@ -43435,7 +43323,7 @@ packages: acorn-walk: 8.3.4 cac: 6.7.14 chai: 4.5.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.11 @@ -43492,7 +43380,7 @@ packages: '@vitest/utils': 1.6.0 acorn-walk: 8.3.4 chai: 4.5.0 - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.11 @@ -43541,7 +43429,7 @@ packages: peerDependencies: eslint: '>=6.0.0' dependencies: - debug: 4.3.7(supports-color@9.3.1) + debug: 4.3.7(supports-color@8.1.1) eslint: 8.57.1 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 From d0074b0eab3595387e906f76f824a722ae07e8c7 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Wed, 25 Dec 2024 00:12:41 +0800 Subject: [PATCH 5/6] chore: set optional --- packages/rsbuild-plugin/package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/rsbuild-plugin/package.json b/packages/rsbuild-plugin/package.json index 1503e08e848..82fb8a32a65 100644 --- a/packages/rsbuild-plugin/package.json +++ b/packages/rsbuild-plugin/package.json @@ -49,6 +49,14 @@ "@module-federation/enhanced": "workspace:*", "@rsbuild/core": "1.x" }, + "peerDependenciesMeta": { + "@rsbuild/core": { + "optional": true + }, + "@module-federation/enhanced": { + "optional": true + } + }, "engines": { "node": ">=16.0.0" }, From cd5269c1dda8e5086c959daec04843ceb26252e4 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Thu, 26 Dec 2024 16:58:58 +0800 Subject: [PATCH 6/6] fix: correct field --- packages/rsbuild-plugin/src/cli/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rsbuild-plugin/src/cli/index.ts b/packages/rsbuild-plugin/src/cli/index.ts index 21cb9478710..84d0be0909f 100644 --- a/packages/rsbuild-plugin/src/cli/index.ts +++ b/packages/rsbuild-plugin/src/cli/index.ts @@ -133,7 +133,7 @@ export const pluginModuleFederation = ( } if (!bundlerConfig.output?.chunkLoadingGlobal) { - bundlerConfig.output!.chunkLoadingGlobal = 'jsonp'; + bundlerConfig.output!.chunkLoading = 'jsonp'; } // `uniqueName` is required for react refresh to work @@ -177,7 +177,7 @@ export const pluginModuleFederation = ( } }); - api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => { + api.modifyEnvironmentConfig((config) => { // Module Federation runtime uses ES6+ syntax, // adding to include and let SWC transform it config.source.include = [