From cb85327f739c52b88a6c5b7429f5741fff740424 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Wed, 24 Jan 2024 18:45:38 +0800 Subject: [PATCH] feat: update rsbuild version (#5274) --- .../builder-webpack-provider/package.json | 2 +- packages/builder/builder/package.json | 2 +- packages/builder/uni-builder/package.json | 36 +- .../src/shared/compatLegacyPlugin.ts | 2 + .../src/shared/plugins/fallback.ts | 15 +- .../tests/__snapshots__/default.test.ts.snap | 16 +- .../__snapshots__/postcssLegacy.test.ts.snap | 4 +- packages/cli/plugin-swc/package.json | 2 +- packages/devtools/client/package.json | 2 +- .../review/eslint-config-app/package.json | 2 +- packages/runtime/plugin-testing/package.json | 2 +- packages/server/server/package.json | 2 +- .../server/server/src/server/devServer.ts | 13 +- packages/server/utils/package.json | 2 +- packages/solutions/app-tools/package.json | 8 +- pnpm-lock.yaml | 497 +++++++++++------- tests/e2e/builder/package.json | 2 +- 17 files changed, 374 insertions(+), 235 deletions(-) diff --git a/packages/builder/builder-webpack-provider/package.json b/packages/builder/builder-webpack-provider/package.json index ec3659250fa8..77d88dadd274 100644 --- a/packages/builder/builder-webpack-provider/package.json +++ b/packages/builder/builder-webpack-provider/package.json @@ -96,7 +96,7 @@ "@modern-js/types": "workspace:*", "@modern-js/utils": "workspace:*", "@pmmmwh/react-refresh-webpack-plugin": "0.5.10", - "@rsbuild/babel-preset": "0.3.4", + "@rsbuild/babel-preset": "0.3.7", "@swc/helpers": "0.5.3", "babel-plugin-import": "1.13.5", "babel-plugin-styled-components": "1.13.3", diff --git a/packages/builder/builder/package.json b/packages/builder/builder/package.json index fe30ced65836..5570befa6c63 100644 --- a/packages/builder/builder/package.json +++ b/packages/builder/builder/package.json @@ -62,7 +62,7 @@ "dependencies": { "@modern-js/builder-shared": "workspace:*", "@modern-js/utils": "workspace:*", - "@rsbuild/monorepo-utils": "0.3.4", + "@rsbuild/monorepo-utils": "0.3.7", "@svgr/webpack": "8.1.0", "@swc/helpers": "0.5.3", "deepmerge": "^4.3.1", diff --git a/packages/builder/uni-builder/package.json b/packages/builder/uni-builder/package.json index 1c317662286b..3f57ab0a6d6c 100644 --- a/packages/builder/uni-builder/package.json +++ b/packages/builder/uni-builder/package.json @@ -35,23 +35,23 @@ "@modern-js/server": "workspace:*", "@modern-js/prod-server": "workspace:*", "@pmmmwh/react-refresh-webpack-plugin": "0.5.10", - "@rsbuild/babel-preset": "0.3.4", - "@rsbuild/core": "0.3.4", - "@rsbuild/plugin-assets-retry": "0.3.4", - "@rsbuild/plugin-babel": "0.3.4", - "@rsbuild/plugin-check-syntax": "0.3.4", - "@rsbuild/plugin-css-minimizer": "0.3.4", - "@rsbuild/plugin-pug": "0.3.4", - "@rsbuild/plugin-react": "0.3.4", - "@rsbuild/plugin-rem": "0.3.4", - "@rsbuild/plugin-source-build": "0.3.4", - "@rsbuild/plugin-styled-components": "0.3.4", - "@rsbuild/plugin-svgr": "0.3.4", - "@rsbuild/plugin-type-check": "0.3.4", - "@rsbuild/plugin-toml": "0.3.4", - "@rsbuild/plugin-yaml": "0.3.4", - "@rsbuild/shared": "0.3.4", - "@rsbuild/webpack": "0.3.4", + "@rsbuild/babel-preset": "0.3.7", + "@rsbuild/core": "0.3.7", + "@rsbuild/plugin-assets-retry": "0.3.7", + "@rsbuild/plugin-babel": "0.3.7", + "@rsbuild/plugin-check-syntax": "0.3.7", + "@rsbuild/plugin-css-minimizer": "0.3.7", + "@rsbuild/plugin-pug": "0.3.7", + "@rsbuild/plugin-react": "0.3.7", + "@rsbuild/plugin-rem": "0.3.7", + "@rsbuild/plugin-source-build": "0.3.7", + "@rsbuild/plugin-styled-components": "0.3.7", + "@rsbuild/plugin-svgr": "0.3.7", + "@rsbuild/plugin-type-check": "0.3.7", + "@rsbuild/plugin-toml": "0.3.7", + "@rsbuild/plugin-yaml": "0.3.7", + "@rsbuild/shared": "0.3.7", + "@rsbuild/webpack": "0.3.7", "@swc/helpers": "0.5.3", "babel-loader": "9.1.3", "babel-plugin-import": "1.13.5", @@ -76,7 +76,7 @@ }, "devDependencies": { "@modern-js/builder-plugin-node-polyfill": "workspace:*", - "@rsbuild/plugin-swc": "0.3.4", + "@rsbuild/plugin-swc": "0.3.7", "@scripts/build": "workspace:*", "@scripts/vitest-config": "workspace:*", "@types/lodash": "^4.14.202", diff --git a/packages/builder/uni-builder/src/shared/compatLegacyPlugin.ts b/packages/builder/uni-builder/src/shared/compatLegacyPlugin.ts index 3fa97c79f450..cf7cdb7ee50c 100644 --- a/packages/builder/uni-builder/src/shared/compatLegacyPlugin.ts +++ b/packages/builder/uni-builder/src/shared/compatLegacyPlugin.ts @@ -78,6 +78,8 @@ export function compatLegacyPlugin( 'modifyBuilderConfig', 'modifyRsbuildConfig', ); + // @ts-expect-error + // rsbuild is not completely consistent with modern.js builder config type return fn(config, { mergeBuilderConfig: mergeRsbuildConfig }); }); }, diff --git a/packages/builder/uni-builder/src/shared/plugins/fallback.ts b/packages/builder/uni-builder/src/shared/plugins/fallback.ts index 4d55cc4bcd16..ab9b5b178297 100644 --- a/packages/builder/uni-builder/src/shared/plugins/fallback.ts +++ b/packages/builder/uni-builder/src/shared/plugins/fallback.ts @@ -6,7 +6,6 @@ import { JSON_REGEX, getDistPath, getFilename, - setConfig, type Rspack, } from '@rsbuild/shared'; import type { RsbuildPlugin } from '@rsbuild/core'; @@ -96,21 +95,15 @@ export const pluginFallback = (): RsbuildPlugin => ({ const distDir = getDistPath(rsbuildConfig, 'media'); const filename = getFilename(rsbuildConfig, 'media', isProd); - setConfig( - config, - 'output.assetModuleFilename', - join(distDir, filename), - ); + config.output ||= {}; + config.output.assetModuleFilename = join(distDir, filename); if (!config.module) { return; } - setConfig( - config, - 'module.rules', - resourceRuleFallback(config.module?.rules), - ); + config.module ||= {}; + config.module.rules = resourceRuleFallback(config.module?.rules); }); } }, diff --git a/packages/builder/uni-builder/tests/__snapshots__/default.test.ts.snap b/packages/builder/uni-builder/tests/__snapshots__/default.test.ts.snap index 09906fb87b6c..a6f8b11ed725 100644 --- a/packages/builder/uni-builder/tests/__snapshots__/default.test.ts.snap +++ b/packages/builder/uni-builder/tests/__snapshots__/default.test.ts.snap @@ -64,7 +64,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = ` "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tiff\\)\\$/i, + "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i, }, { "oneOf": [ @@ -91,7 +91,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = ` "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mp3\\|wav\\|flac\\|aac\\|mov\\)\\$/i, + "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mov\\|mp3\\|wav\\|flac\\|aac\\|m4a\\|opus\\)\\$/i, }, { "oneOf": [ @@ -1069,7 +1069,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tiff\\)\\$/i, + "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i, }, { "oneOf": [ @@ -1096,7 +1096,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mp3\\|wav\\|flac\\|aac\\|mov\\)\\$/i, + "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mov\\|mp3\\|wav\\|flac\\|aac\\|m4a\\|opus\\)\\$/i, }, { "oneOf": [ @@ -2087,7 +2087,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = ` "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tiff\\)\\$/i, + "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i, }, { "oneOf": [ @@ -2114,7 +2114,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = ` "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mp3\\|wav\\|flac\\|aac\\|mov\\)\\$/i, + "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mov\\|mp3\\|wav\\|flac\\|aac\\|m4a\\|opus\\)\\$/i, }, { "oneOf": [ @@ -3109,7 +3109,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tiff\\)\\$/i, + "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i, }, { "oneOf": [ @@ -3136,7 +3136,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mp3\\|wav\\|flac\\|aac\\|mov\\)\\$/i, + "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mov\\|mp3\\|wav\\|flac\\|aac\\|m4a\\|opus\\)\\$/i, }, { "oneOf": [ diff --git a/packages/builder/uni-builder/tests/__snapshots__/postcssLegacy.test.ts.snap b/packages/builder/uni-builder/tests/__snapshots__/postcssLegacy.test.ts.snap index 12b53041570d..9563c54d57e4 100644 --- a/packages/builder/uni-builder/tests/__snapshots__/postcssLegacy.test.ts.snap +++ b/packages/builder/uni-builder/tests/__snapshots__/postcssLegacy.test.ts.snap @@ -39,7 +39,7 @@ exports[`plugin-postcssLegacy > should register postcss plugin by browserslist 1 "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tiff\\)\\$/i, + "test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i, }, { "oneOf": [ @@ -66,7 +66,7 @@ exports[`plugin-postcssLegacy > should register postcss plugin by browserslist 1 "type": "asset", }, ], - "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mp3\\|wav\\|flac\\|aac\\|mov\\)\\$/i, + "test": /\\\\\\.\\(\\?:mp4\\|webm\\|ogg\\|mov\\|mp3\\|wav\\|flac\\|aac\\|m4a\\|opus\\)\\$/i, }, { "oneOf": [ diff --git a/packages/cli/plugin-swc/package.json b/packages/cli/plugin-swc/package.json index 4fd453749cdc..fdb385e19854 100644 --- a/packages/cli/plugin-swc/package.json +++ b/packages/cli/plugin-swc/package.json @@ -37,7 +37,7 @@ "test": "jest" }, "dependencies": { - "@rsbuild/plugin-swc": "0.3.4", + "@rsbuild/plugin-swc": "0.3.7", "@modern-js/utils": "workspace:*", "@swc/helpers": "0.5.3" }, diff --git a/packages/devtools/client/package.json b/packages/devtools/client/package.json index 1ca9947692b1..5c563eeeb9af 100644 --- a/packages/devtools/client/package.json +++ b/packages/devtools/client/package.json @@ -42,7 +42,7 @@ "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/themes": "^2.0.0", - "@rsbuild/core": "0.3.4", + "@rsbuild/core": "0.3.7", "@types/jest": "^29", "@types/lodash": "^4.14.202", "@types/node": "~16.11.7", diff --git a/packages/review/eslint-config-app/package.json b/packages/review/eslint-config-app/package.json index 2230e3c705e8..9d8fbdba2ff5 100644 --- a/packages/review/eslint-config-app/package.json +++ b/packages/review/eslint-config-app/package.json @@ -25,7 +25,7 @@ "@babel/core": "^7.23.2", "@babel/eslint-parser": "^7.22.15", "@babel/eslint-plugin": "^7.22.10", - "@rsbuild/babel-preset": "0.3.4", + "@rsbuild/babel-preset": "0.3.7", "@typescript-eslint/eslint-plugin": "^5.59.0", "@typescript-eslint/parser": "^5.59.0", "eslint": "^8.28.0", diff --git a/packages/runtime/plugin-testing/package.json b/packages/runtime/plugin-testing/package.json index 9de430139e8d..acb1ce575bb2 100644 --- a/packages/runtime/plugin-testing/package.json +++ b/packages/runtime/plugin-testing/package.json @@ -128,7 +128,7 @@ "@modern-js/plugin": "workspace:*", "@modern-js/prod-server": "workspace:*", "@modern-js/types": "workspace:*", - "@rsbuild/babel-preset": "0.3.4", + "@rsbuild/babel-preset": "0.3.7", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^13.4.0", "@types/testing-library__jest-dom": "^5.14.3", diff --git a/packages/server/server/package.json b/packages/server/server/package.json index fc0570cdba7f..9d0547f83f37 100644 --- a/packages/server/server/package.json +++ b/packages/server/server/package.json @@ -62,7 +62,7 @@ "axios": "^1.6.0" }, "devDependencies": { - "@rsbuild/shared": "0.3.4", + "@rsbuild/shared": "0.3.7", "@modern-js/server-core": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", diff --git a/packages/server/server/src/server/devServer.ts b/packages/server/server/src/server/devServer.ts index b2ef327e8d75..9bed0bd00bc8 100644 --- a/packages/server/server/src/server/devServer.ts +++ b/packages/server/server/src/server/devServer.ts @@ -162,7 +162,18 @@ export class ModernDevServer extends ModernServer { await this.applyDefaultMiddlewares(); - this.addMiddlewareHandler(rsbuildMiddlewares); + rsbuildMiddlewares.forEach(middleware => { + if (Array.isArray(middleware)) { + this.addHandler((ctx, next) => { + if (ctx.path === middleware[0]) { + return middleware[1](ctx.req, ctx.res, next); + } + return next(); + }); + } else { + this.addMiddlewareHandler([middleware]); + } + }); this.closeCb.push(close); diff --git a/packages/server/utils/package.json b/packages/server/utils/package.json index 07f950144287..f4da87308957 100644 --- a/packages/server/utils/package.json +++ b/packages/server/utils/package.json @@ -46,7 +46,7 @@ "@modern-js/babel-compiler": "workspace:*", "@modern-js/utils": "workspace:*", "@modern-js/babel-plugin-module-resolver": "workspace:*", - "@rsbuild/babel-preset": "0.3.4", + "@rsbuild/babel-preset": "0.3.7", "@swc/helpers": "0.5.3", "babel-plugin-transform-typescript-metadata": "^0.3.2" }, diff --git a/packages/solutions/app-tools/package.json b/packages/solutions/app-tools/package.json index a22e6eff3610..43c9d65170a5 100644 --- a/packages/solutions/app-tools/package.json +++ b/packages/solutions/app-tools/package.json @@ -90,16 +90,16 @@ "@modern-js/types": "workspace:*", "@modern-js/upgrade": "workspace:*", "@modern-js/utils": "workspace:*", - "@rsbuild/plugin-esbuild": "0.3.4", - "@rsbuild/plugin-node-polyfill": "0.3.4", - "@rsbuild/shared": "0.3.4", + "@rsbuild/plugin-esbuild": "0.3.7", + "@rsbuild/plugin-node-polyfill": "0.3.7", + "@rsbuild/shared": "0.3.7", "es-module-lexer": "^1.1.0", "esbuild": "0.17.19", "@swc/helpers": "0.5.3", "@modern-js/server-core": "workspace:*" }, "devDependencies": { - "@rsbuild/plugin-swc": "0.3.4", + "@rsbuild/plugin-swc": "0.3.7", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/babel__traverse": "7.18.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 756d33767bd0..41c50685a7e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -91,11 +91,11 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rsbuild/monorepo-utils': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3) '@svgr/webpack': specifier: 8.1.0 - version: 8.1.0 + version: 8.1.0(typescript@5.3.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -331,8 +331,8 @@ importers: specifier: 0.5.10 version: 0.5.10(react-refresh@0.14.0)(webpack@5.89.0) '@rsbuild/babel-preset': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -649,56 +649,56 @@ importers: specifier: 0.5.10 version: 0.5.10(react-refresh@0.14.0)(webpack@5.89.0) '@rsbuild/babel-preset': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/core': - specifier: 0.3.4 - version: 0.3.4 + specifier: 0.3.7 + version: 0.3.7 '@rsbuild/plugin-assets-retry': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-babel': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-check-syntax': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-css-minimizer': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3)(esbuild@0.17.19)(webpack@5.89.0) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(esbuild@0.17.19)(webpack@5.89.0) '@rsbuild/plugin-pug': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-react': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-rem': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-source-build': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-styled-components': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-svgr': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(typescript@5.3.3) '@rsbuild/plugin-toml': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-type-check': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3)(typescript@5.3.3)(webpack@5.89.0) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(typescript@5.3.3)(webpack@5.89.0) '@rsbuild/plugin-yaml': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/shared': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3) '@rsbuild/webpack': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3)(esbuild@0.17.19) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3)(esbuild@0.17.19) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -767,8 +767,8 @@ importers: specifier: workspace:* version: link:../plugin-node-polyfill '@rsbuild/plugin-swc': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7) '@scripts/build': specifier: workspace:* version: link:../../../scripts/build @@ -1244,8 +1244,8 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rsbuild/plugin-swc': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -1378,8 +1378,8 @@ importers: specifier: ^2.0.0 version: 2.0.0(@types/react-dom@18.0.6)(@types/react@18.0.21)(react-dom@18.2.0)(react@18.2.0) '@rsbuild/core': - specifier: 0.3.4 - version: 0.3.4 + specifier: 0.3.7 + version: 0.3.7 '@scripts/jest-config': specifier: workspace:* version: link:../../../scripts/jest-config @@ -1648,7 +1648,7 @@ importers: version: 18.2.0(react@18.2.0) rspress: specifier: 1.10.1 - version: 1.10.1(webpack@5.89.0) + version: 1.10.1(typescript@5.3.3)(webpack@5.89.0) packages/document/main-doc: dependencies: @@ -1688,7 +1688,7 @@ importers: version: 18.2.0(react@18.2.0) rspress: specifier: 1.10.1 - version: 1.10.1(webpack@5.89.0) + version: 1.10.1(typescript@5.3.3)(webpack@5.89.0) ts-node: specifier: ^10.9.1 version: 10.9.2(@types/node@16.11.68)(typescript@5.3.3) @@ -1712,7 +1712,7 @@ importers: version: 18.2.0(react@18.2.0) rspress: specifier: 1.10.1 - version: 1.10.1(webpack@5.89.0) + version: 1.10.1(typescript@5.3.3)(webpack@5.89.0) packages/generator/generator-cases: dependencies: @@ -3308,8 +3308,8 @@ importers: specifier: ^7.22.10 version: 7.22.10(@babel/eslint-parser@7.22.15)(eslint@8.28.0) '@rsbuild/babel-preset': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@typescript-eslint/eslint-plugin': specifier: ^5.59.0 version: 5.59.6(@typescript-eslint/parser@5.59.6)(eslint@8.28.0)(typescript@5.3.3) @@ -3716,8 +3716,8 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rsbuild/babel-preset': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -4479,8 +4479,8 @@ importers: specifier: workspace:* version: link:../core '@rsbuild/shared': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3) '@scripts/build': specifier: workspace:* version: link:../../../scripts/build @@ -4551,8 +4551,8 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rsbuild/babel-preset': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -4645,14 +4645,14 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rsbuild/plugin-esbuild': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/plugin-node-polyfill': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) '@rsbuild/shared': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3) '@swc/helpers': specifier: 0.5.3 version: 0.5.3 @@ -4664,8 +4664,8 @@ importers: version: 0.17.19 devDependencies: '@rsbuild/plugin-swc': - specifier: 0.3.4 - version: 0.3.4(@rsbuild/core@0.3.4) + specifier: 0.3.7 + version: 0.3.7(@rsbuild/core@0.3.7) '@scripts/build': specifier: workspace:* version: link:../../../scripts/build @@ -5999,8 +5999,8 @@ importers: specifier: 1.33.0 version: 1.33.0 '@rsbuild/shared': - specifier: 0.3.4 - version: 0.3.4(@swc/helpers@0.5.3) + specifier: 0.3.7 + version: 0.3.7(@swc/helpers@0.5.3) '@types/lodash': specifier: ^4.14.202 version: 4.14.202 @@ -14292,8 +14292,8 @@ packages: rollup: 3.29.4 dev: true - /@rsbuild/babel-preset@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-lGYVxjuf5SmWt10cBu/agYxpXNfFrvgcl7r9pnObWF9bRwsuaI1S+EuigjFeBUVPdNs4OMQy46sQaTpMfp4p0A==} + /@rsbuild/babel-preset@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-GeKUdQRZFNzfoRw0tDRyabtKsgj3SXP0tqE/2spmedUriP8W6m5ywbaWwsyiBV6VU/fMljnvk4xlGzcdSfDGgg==} dependencies: '@babel/core': 7.23.6 '@babel/plugin-proposal-decorators': 7.23.6(@babel/core@7.23.6) @@ -14305,8 +14305,8 @@ packages: '@babel/preset-typescript': 7.23.2(@babel/core@7.23.6) '@babel/runtime': 7.23.2 '@babel/types': 7.23.6 - '@rsbuild/plugin-babel': 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/plugin-babel': 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@types/babel__core': 7.20.3 babel-plugin-dynamic-import-node: 2.3.3 core-js: 3.32.2 @@ -14329,48 +14329,48 @@ packages: postcss: 8.4.31 dev: true - /@rsbuild/core@0.3.4: - resolution: {integrity: sha512-FrAFuu0q9l1/lTqSNU8/qYPVDXYFOBz4abOjd61ycLjVtFaMhOWDjKxqI+c6k3XG3pZQ+CmjSfT4m50gA20+nA==} + /@rsbuild/core@0.3.7: + resolution: {integrity: sha512-3CECaT33x0m+tnnvdSMmNkRUn5D0hrd2lSBklmyBKwTASKT8xlhHNWOTFbrOlG4PByjPRCO4PoykZa5OOVvXMA==} engines: {node: '>=14.0.0'} hasBin: true dependencies: - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@rspack/core': 0.5.0(@swc/helpers@0.5.3) '@swc/helpers': 0.5.3 core-js: 3.32.2 html-webpack-plugin: /html-rspack-plugin@5.5.7 postcss: 8.4.33 - /@rsbuild/monorepo-utils@0.3.4(@swc/helpers@0.5.3): - resolution: {integrity: sha512-tjC/65mq+M5TGIhkgT//m8yxmlmq2KXhkG15TJS5f17BsY2UPjftJQ9/R4kyDmqnZ40kBgtK6rsTa23V6b+uXQ==} + /@rsbuild/monorepo-utils@0.3.7(@swc/helpers@0.5.3): + resolution: {integrity: sha512-sLsvvHTbAf3eaYR8wpc+88s0a13RR+WTa2SEML2BS1865BoHpkaURIDaVbLfIO3FWR6uap8WV5Eazl5fxwb3yQ==} dependencies: - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) fast-glob: 3.3.2 transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-assets-retry@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-tJt1w2u17ovIMriU1m7+3xRHEsznjB5YWkG7m0NQgKYwUdfLT9hyU+PdcFiY2KdC36t2M2Ntz2XRYhV+KKzqXg==} + /@rsbuild/plugin-assets-retry@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-7Gpj6m18XQf+8BdLF0s5QD7DLYyLac8j1EuOzktSjL+UNFmTBrvkP3csEPSFcr2/n28YbC3CR31ZUVhtBwy0YA==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) serialize-javascript: 6.0.1 transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-babel@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-N6frB1R9mK1K/leaA73eNF2Vo9hy4B1i4+CGFUCbP4msS0DGasAlZ1fUlNWvCi7a07Q9R2QbWc38RG1yRyKYBw==} + /@rsbuild/plugin-babel@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-L4ORUCTmy3rv5elWrG04EyaOYea24BnRn5jp9aA0zHgraFVf/YAk430Cxa2qX7G8pWZtAHHRGE06ey3b1eCwBA==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: '@babel/core': 7.23.6 '@babel/preset-typescript': 7.23.2(@babel/core@7.23.6) - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@types/babel__core': 7.20.3 upath: 2.0.1 transitivePeerDependencies: @@ -14378,28 +14378,28 @@ packages: - supports-color dev: false - /@rsbuild/plugin-check-syntax@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-8K13olafanPrrN6SubefdW+FzXKA480wWzd8NHgDDO+KBJGQKStRI84yVt3xSBtp1PfJbMXzZmAOQoQRLOW7WA==} + /@rsbuild/plugin-check-syntax@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-jh6b4zU0TjbYb/+n3Hco3rj61kEJ46qyOC3zQo06SO3hqQp6K+mwYAHZC48vWxWarYxknJw6YRk+ndEziW5doQ==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) acorn: 8.11.2 caniuse-lite: 1.0.30001566 - htmlparser2: 9.0.0 + htmlparser2: 9.1.0 source-map: 0.7.4 transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-css-minimizer@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3)(esbuild@0.17.19)(webpack@5.89.0): - resolution: {integrity: sha512-gJLj3f8W4TSjDzo8bvW9VVeai2g5QqXT0WDyKjqWp/0XRbseOqWJu5lJPOnyaGcul3qAFSuKgUUon2z1HoEBhA==} + /@rsbuild/plugin-css-minimizer@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(esbuild@0.17.19)(webpack@5.89.0): + resolution: {integrity: sha512-vbc6h3QppxJFBhbDQ9UQ6IT4ilO0kixsIgVUh+xdcHPvnDeA2hGre6Df4sd5ijTdEvnT2mddS4/w/4uYLMsp3w==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) css-minimizer-webpack-plugin: 5.0.1(esbuild@0.17.19)(webpack@5.89.0) transitivePeerDependencies: - '@parcel/css' @@ -14412,13 +14412,13 @@ packages: - webpack dev: false - /@rsbuild/plugin-esbuild@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-+fNDEtLRlY5hZ9Iv63WFk5KIMFGhZsGLuI7fqcmQRSClebifQ267YQFvwtGNMOraOIqxiFElmhxHdjIDHJYEUA==} + /@rsbuild/plugin-esbuild@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-hQE/Dzp6WV58yCIU/BvjBoZpFMFwZ1kE22BpgHM1vvzv2DT0g++3vyUUoucsLWbsJpxluWnt1wS1sj5h+/dx6g==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) esbuild: 0.17.19 webpack: 5.89.0(esbuild@0.17.19) transitivePeerDependencies: @@ -14428,25 +14428,47 @@ packages: - webpack-cli dev: false - /@rsbuild/plugin-node-polyfill@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-PcVKW8o8qyeg+rLMO3xzfVOPkyZVNQrBJDz5w2WlB46YVFgIx4B9NjipSfGhgXF0aGx7fYAp0lOGtFT57DJVCg==} + /@rsbuild/plugin-node-polyfill@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-duck7P6dJPCIiTzzSekieA26skDX5//ECy3UAkZNis78Qh13Wr2+DEHiQ5BrFyptssuDCtjoA5x+791BU5N51Q==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) - node-libs-browser: 2.2.1 + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) + assert: 2.1.0 + browserify-zlib: 0.2.0 + buffer: 5.7.1 + console-browserify: 1.2.0 + constants-browserify: 1.0.0 + crypto-browserify: 3.12.0 + domain-browser: 5.7.0 + events: 3.3.0 + https-browserify: 1.0.0 + os-browserify: 0.3.0 + path-browserify: 1.0.1 + process: 0.11.10 + punycode: 2.3.1 + querystring-es3: 0.2.1 + readable-stream: 4.5.2 + stream-browserify: 3.0.0 + stream-http: 3.2.0 + string_decoder: 1.3.0 + timers-browserify: 2.0.12 + tty-browserify: 0.0.1 + url: 0.11.3 + util: 0.12.5 + vm-browserify: 1.1.2 transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-pug@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-sUyF3b3K9ZLvoMQuYeN3NI+zz2IlNqaPRWLNFr8LHzTKx52DnM8OxKpQsmTs2oNq4YxCIp1o/wSvCMmE5ftzDA==} + /@rsbuild/plugin-pug@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-58r6gLsWN6SNqSV8+BpqDsOVn9LO0Vq51XMO4Q/ruSLJBdJEAw/o86XA4Ua36nKFJ7mn7rwxQewEbjd65dL1uQ==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@types/pug': 2.0.10 pug: 3.0.2 transitivePeerDependencies: @@ -14463,112 +14485,114 @@ packages: - '@swc/helpers' dev: true - /@rsbuild/plugin-react@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-vbdZUj1KApKWklTuUAkY+bevucbejsnn+v6BBhYGk37j5SvhTY/uNBpZBcuBl7EX/1xnOaHLy91wqFOKhSxgkw==} + /@rsbuild/plugin-react@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-vKjVMZBHp1EEodVsPW5E9cOaA7UvnXxK7ACjWRvuRlMK54VUkYE/npzB2QAxXU3bKK2KiYOH78YYpiHyz1mkFQ==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@rspack/plugin-react-refresh': 0.5.0(react-refresh@0.14.0) react-refresh: 0.14.0 transitivePeerDependencies: - '@swc/helpers' - /@rsbuild/plugin-rem@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-AEsJHOtLcGr3OslrQ7FdJkTt/ZFTtLgFf3Ix73yY6pNyez/x4o8Kl0/Kk75hZsGm8N/j01XOzFgHRDKs4a7R7A==} + /@rsbuild/plugin-rem@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-72QsjLpDaIN4lA4KlgNVy9KLL1wvFEp9CNl69qtYmJLhFqSMlVBM8a+NEditw4gAokmYBL0abgxqkbEZd+pa2A==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) - terser: 5.19.2 + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) + terser: 5.27.0 transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-source-build@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-ARazIJpqYU/gQlfsUzchI9PvnDlhUK0+vz0ub/7aURvqPwBe0LpmWf5+9PHofg6oxWmMcZgl66gwnospMmjGnQ==} + /@rsbuild/plugin-source-build@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-WtKgwDjpoxzSyuhwiVao86d/L9mDILfLXmNPQ4pHC3ZlJAwCMpQImyG3mfGR18q+V7svdUpdht8E58JcAeeA6A==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/monorepo-utils': 0.3.4(@swc/helpers@0.5.3) - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/monorepo-utils': 0.3.7(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-styled-components@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-PIyRMHl/N+yYQOvio1Kyh76y1YKzFzI4T2m4+qXJz6oKYKOq4WaRKP6whyXDdSKtIBmo73r06wOGJy3YyrcjNg==} + /@rsbuild/plugin-styled-components@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-HTdiTdHbkC7LOqZDoxpy0UhOWDUX72fYlse+AnaRUKEl+v95XnJaXKjbbFuhF6GKsXzKp/TlEkvoePTO1mz4qw==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-svgr@0.3.1: + /@rsbuild/plugin-svgr@0.3.1(typescript@5.3.3): resolution: {integrity: sha512-uzlfrymQmIXMmZ8PL4OaY83V8TNDSohh+hfGElcbgVSLBZ11+lZ9weQUv/rQqX0sCjQgc9xIt+4w3DEnuus7Yg==} dependencies: '@rsbuild/shared': 0.3.1(@swc/helpers@0.5.3) - '@svgr/core': 8.1.0 + '@svgr/core': 8.1.0(typescript@5.3.3) '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0)(typescript@5.3.3) transitivePeerDependencies: - '@swc/helpers' - supports-color + - typescript dev: true - /@rsbuild/plugin-svgr@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-sOxLBux+zZ4oZBMAL/CTdGkfobXTsONEmFXWmE/aPIj3jDuoZri+HPgVK5sOT+iqU7o+LMfp+bjxO103TB2dZw==} + /@rsbuild/plugin-svgr@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(typescript@5.3.3): + resolution: {integrity: sha512-35jIEhV8uWRUmPEIsZn86fkjLrD3eCKniiij0ZpES8+1fC4zpXxz0b60S0S8zNhkVM+K3RtuFYYIyG6xv+hPCQ==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/plugin-react': 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) - '@svgr/core': 8.1.0 + '@rsbuild/core': 0.3.7 + '@rsbuild/plugin-react': 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) + '@svgr/core': 8.1.0(typescript@5.3.3) '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0)(typescript@5.3.3) transitivePeerDependencies: - '@swc/helpers' - supports-color + - typescript dev: false - /@rsbuild/plugin-swc@0.3.4(@rsbuild/core@0.3.4): - resolution: {integrity: sha512-MnvlgLqR2wErekI86h9yM6dSr3bTetNBXuFo7P7NDGOZXVhN+IWoDhWPFB2Fq7QuhezdGM70hyAzqUh5ZpZRuw==} + /@rsbuild/plugin-swc@0.3.7(@rsbuild/core@0.3.7): + resolution: {integrity: sha512-i7TNGlwXE0EVwekxcgoMadsejI6hEwoQM86DumsnBhaJ+/KYDmYl1wfH6X16XB0NnVNFG0nj4O3dPJATz9lz8Q==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: '@modern-js/swc-plugins': 0.6.6(@swc/helpers@0.5.3) - '@rsbuild/core': 0.3.4 - '@rsbuild/plugin-react': 0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3) - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/plugin-react': 0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3) + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) '@swc/helpers': 0.5.3 core-js: 3.32.2 lodash: 4.17.21 - /@rsbuild/plugin-toml@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-TB1QqiFMxvBZuX6bk3ZSycjnBt043yyAaOp0oIw4RtPirsQKZvsCy+i1lL7QvRKeZVddJKiqT9n/+KvkBotpeA==} + /@rsbuild/plugin-toml@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-/aCYF2GkBeChvzt0ydsZ4+v1t0TQhOqi8kdu0M0SB+QtOH00qnE2uCkrD44XKgYO9fxpAYW06yJLTGq+gXYoxw==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) transitivePeerDependencies: - '@swc/helpers' dev: false - /@rsbuild/plugin-type-check@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3)(typescript@5.3.3)(webpack@5.89.0): - resolution: {integrity: sha512-ww5LLmKNlIQO5o4BIvJazZnO3/LLWN1XS/NRTkUDK5Zzo47uAAaqwdYPZvWw6PDtVL4wH0NWKUJBrtBP+i++Dw==} + /@rsbuild/plugin-type-check@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3)(typescript@5.3.3)(webpack@5.89.0): + resolution: {integrity: sha512-8KPu56GTVTuyk9zz7xj23wmTqDltfRzRbhOrV8thaXicLGNd+uVd2Xf453pPnSp6xCNElXM7fU7gpY44HmJu6g==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) fork-ts-checker-webpack-plugin: 9.0.2(typescript@5.3.3)(webpack@5.89.0) transitivePeerDependencies: - '@swc/helpers' @@ -14576,13 +14600,13 @@ packages: - webpack dev: false - /@rsbuild/plugin-yaml@0.3.4(@rsbuild/core@0.3.4)(@swc/helpers@0.5.3): - resolution: {integrity: sha512-KV7Kc9USPlvUqAG4uyYU+yI25XoDnp+rJPL478P7nOSamiNV1vHKmMQqIelzCVULec1L4cxxkWEf4Lnu8Atovw==} + /@rsbuild/plugin-yaml@0.3.7(@rsbuild/core@0.3.7)(@swc/helpers@0.5.3): + resolution: {integrity: sha512-/2BL0OfqLhzA6j0Wrowq/4lTXLyBTUHl/C4tkBKj58IV3V85zvfso6KDJa6put0lFH8wLFOMI+00UzrNo71ulA==} peerDependencies: - '@rsbuild/core': ^0.3.4 + '@rsbuild/core': ^0.3.7 dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) transitivePeerDependencies: - '@swc/helpers' dev: false @@ -14598,8 +14622,8 @@ packages: - '@swc/helpers' dev: true - /@rsbuild/shared@0.3.4(@swc/helpers@0.5.3): - resolution: {integrity: sha512-rvm+B2pGHsRSW3LiqPzOnyg/PQMNZsrX2QvuZLUovuF3DpvzKJoBsrj0ih1c0ymlIEitEcoBqiJbQUVQI3iDUQ==} + /@rsbuild/shared@0.3.7(@swc/helpers@0.5.3): + resolution: {integrity: sha512-XY82H5CzymyuUC3zGxTWDgKEXWXiQnt1kmPQS1T1mS6jwo8SSwTcEub+E5vtpAOn6r1tNGGHZre+7EVJtF51nQ==} dependencies: '@rspack/core': 0.5.0(@swc/helpers@0.5.3) caniuse-lite: 1.0.30001566 @@ -14608,17 +14632,17 @@ packages: transitivePeerDependencies: - '@swc/helpers' - /@rsbuild/webpack@0.3.4(@swc/helpers@0.5.3)(esbuild@0.17.19): - resolution: {integrity: sha512-xcgbcdmu9mPwTRG08hKdwuo+pXMZpbALxLXzuLpIUnO5J9atwMWDoIPGFNwqpuQxznCWKn8lQffX6lpr42hKwQ==} + /@rsbuild/webpack@0.3.7(@swc/helpers@0.5.3)(esbuild@0.17.19): + resolution: {integrity: sha512-GP/HSftBrxPI0l3VVZ8ZudD7oUgD8iL0PRtLbowy3fkSm9Ym9z86KuUHMKNqjBNXyigWdCVj2wbjRLULynlOzg==} dependencies: - '@rsbuild/core': 0.3.4 - '@rsbuild/shared': 0.3.4(@swc/helpers@0.5.3) + '@rsbuild/core': 0.3.7 + '@rsbuild/shared': 0.3.7(@swc/helpers@0.5.3) fast-glob: 3.3.2 globby: 11.1.0 html-webpack-plugin: /html-rspack-plugin@5.5.7 mini-css-extract-plugin: 2.7.7(webpack@5.89.0) postcss: 8.4.33 - terser-webpack-plugin: 5.3.9(esbuild@0.17.19)(webpack@5.89.0) + terser-webpack-plugin: 5.3.10(esbuild@0.17.19)(webpack@5.89.0) tsconfig-paths-webpack-plugin: 4.1.0 webpack: 5.89.0(esbuild@0.17.19) transitivePeerDependencies: @@ -14873,7 +14897,7 @@ packages: dependencies: react-refresh: 0.14.0 - /@rspress/core@1.10.1(webpack@5.89.0): + /@rspress/core@1.10.1(typescript@5.3.3)(webpack@5.89.0): resolution: {integrity: sha512-o45P7J4EDu0X3U0ai7RFYlJpYaUYmGSBxoP8K3KFmDRBugLuhfAmJ7wr7tTfG7nnH5Q8NaMI8/+FmGWYXA5qww==} engines: {node: '>=14.17.6'} dependencies: @@ -14884,7 +14908,7 @@ packages: '@modern-js/utils': link:packages/toolkit/utils '@rsbuild/core': 0.3.1 '@rsbuild/plugin-react': 0.3.1 - '@rsbuild/plugin-svgr': 0.3.1 + '@rsbuild/plugin-svgr': 0.3.1(typescript@5.3.3) '@rspress/mdx-rs': 0.4.3 '@rspress/plugin-auto-nav-sidebar': 1.10.1 '@rspress/plugin-container-syntax': 1.10.1 @@ -14931,6 +14955,7 @@ packages: transitivePeerDependencies: - '@swc/helpers' - supports-color + - typescript - webpack dev: true @@ -15905,6 +15930,19 @@ packages: transitivePeerDependencies: - supports-color + /@svgr/core@8.1.0(typescript@5.3.3): + resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==} + engines: {node: '>=14'} + dependencies: + '@babel/core': 7.23.6 + '@svgr/babel-preset': 8.1.0(@babel/core@7.23.6) + camelcase: 6.3.0 + cosmiconfig: 8.3.6(typescript@5.3.3) + snake-case: 3.0.4 + transitivePeerDependencies: + - supports-color + - typescript + /@svgr/hast-util-to-babel-ast@8.0.0: resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==} engines: {node: '>=14'} @@ -15936,8 +15974,22 @@ packages: cosmiconfig: 8.1.3 deepmerge: 4.3.1 svgo: 3.0.2 + dev: true + + /@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0)(typescript@5.3.3): + resolution: {integrity: sha512-Ywtl837OGO9pTLIN/onoWLmDQ4zFUycI1g76vuKGEz6evR/ZTJlJuz3G/fIkb6OVBJ2g0o6CGJzaEjfmEo3AHA==} + engines: {node: '>=14'} + peerDependencies: + '@svgr/core': '*' + dependencies: + '@svgr/core': 8.1.0(typescript@5.3.3) + cosmiconfig: 8.3.6(typescript@5.3.3) + deepmerge: 4.3.1 + svgo: 3.0.2 + transitivePeerDependencies: + - typescript - /@svgr/webpack@8.1.0: + /@svgr/webpack@8.1.0(typescript@5.3.3): resolution: {integrity: sha512-LnhVjMWyMQV9ZmeEy26maJk+8HTIbd59cH4F2MJ439k9DqejRisfFNGAPvRYlKETuh9LrImlS8aKsBgKjMA8WA==} engines: {node: '>=14'} dependencies: @@ -15946,11 +15998,12 @@ packages: '@babel/preset-env': 7.23.5(@babel/core@7.23.6) '@babel/preset-react': 7.22.15(@babel/core@7.23.6) '@babel/preset-typescript': 7.23.2(@babel/core@7.23.6) - '@svgr/core': 8.1.0 + '@svgr/core': 8.1.0(typescript@5.3.3) '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0)(typescript@5.3.3) transitivePeerDependencies: - supports-color + - typescript dev: false /@swc/core-darwin-arm64@1.3.42: @@ -19361,7 +19414,6 @@ packages: parse-json: 5.2.0 path-type: 4.0.0 typescript: 5.3.3 - dev: false /covertable@2.2.5: resolution: {integrity: sha512-xwHZSOMBDp7s/4i4j9opnvIeU029Smwe2EKr8sDPGQ3ClkpN0O5gDpon/YylbMpJ2x1EeFZKJFLKAksaaIwHGQ==} @@ -20132,6 +20184,11 @@ packages: engines: {node: '>=10'} dev: false + /domain-browser@5.7.0: + resolution: {integrity: sha512-edTFu0M/7wO1pXY6GDxVNVW086uqwWYIHP98txhcPyV995X21JIH2DtYp33sQJOupYoXKe9RwTw2Ya2vWaquTQ==} + engines: {node: '>=4'} + dev: false + /domelementtype@2.3.0: resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} @@ -22814,6 +22871,15 @@ packages: entities: 4.5.0 dev: false + /htmlparser2@9.1.0: + resolution: {integrity: sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==} + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.1.0 + entities: 4.5.0 + dev: false + /htmr@1.0.2(react@18.2.0): resolution: {integrity: sha512-7T9babEHZwECQ2/ouxNPow1uGcKbj/BcbslPGPRxBKIOLNiIrFKq6ELzor7mc4HiexZzdb3izQQLl16bhPR9jw==} peerDependencies: @@ -27810,6 +27876,11 @@ packages: resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} engines: {node: '>=6'} + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + dev: false + /puppeteer-core@19.11.1(typescript@5.3.3): resolution: {integrity: sha512-qcuC2Uf0Fwdj9wNtaTZ2OvYRraXpAK+puwwVW8ofOhOgLPZyz1c68tsorfIZyCUOpyBisjr+xByu7BMbEYMepA==} engines: {node: '>=14.14.0'} @@ -27923,6 +27994,13 @@ packages: dependencies: side-channel: 1.0.4 + /qs@6.11.2: + resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==} + engines: {node: '>=0.6'} + dependencies: + side-channel: 1.0.4 + dev: false + /qs@6.9.3: resolution: {integrity: sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==} engines: {node: '>=0.6'} @@ -29384,6 +29462,17 @@ packages: string_decoder: 1.3.0 util-deprecate: 1.0.2 + /readable-stream@4.5.2: + resolution: {integrity: sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + abort-controller: 3.0.0 + buffer: 6.0.3 + events: 3.3.0 + process: 0.11.10 + string_decoder: 1.3.0 + dev: false + /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} @@ -29902,12 +29991,12 @@ packages: fs-extra: 11.2.0 dev: true - /rspress@1.10.1(webpack@5.89.0): + /rspress@1.10.1(typescript@5.3.3)(webpack@5.89.0): resolution: {integrity: sha512-gH4IXrSn2UfBANnumwa3XIL/pzL9C0rtnM6IJi/wTmsnpira301LwLRQ9uf9i7IyRA4p2uypfTGyyDryylJ2FQ==} hasBin: true dependencies: '@modern-js/node-bundle-require': link:packages/toolkit/node-bundle-require - '@rspress/core': 1.10.1(webpack@5.89.0) + '@rspress/core': 1.10.1(typescript@5.3.3)(webpack@5.89.0) '@rspress/shared': 1.10.1 cac: 6.7.14 chalk: 5.3.0 @@ -29915,6 +30004,7 @@ packages: transitivePeerDependencies: - '@swc/helpers' - supports-color + - typescript - webpack dev: true @@ -31201,6 +31291,31 @@ packages: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 + /terser-webpack-plugin@5.3.10(esbuild@0.17.19)(webpack@5.89.0): + resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} + engines: {node: '>= 10.13.0'} + peerDependencies: + '@swc/core': '*' + esbuild: '*' + uglify-js: '*' + webpack: ^5.1.0 + peerDependenciesMeta: + '@swc/core': + optional: true + esbuild: + optional: true + uglify-js: + optional: true + dependencies: + '@jridgewell/trace-mapping': 0.3.20 + esbuild: 0.17.19 + jest-worker: 27.5.1 + schema-utils: 3.3.0 + serialize-javascript: 6.0.1 + terser: 5.27.0 + webpack: 5.89.0(esbuild@0.17.19) + dev: false + /terser-webpack-plugin@5.3.9(@swc/core@1.3.42)(esbuild@0.17.19)(webpack@5.89.0): resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} engines: {node: '>= 10.13.0'} @@ -31285,6 +31400,17 @@ packages: commander: 2.20.3 source-map-support: 0.5.21 + /terser@5.27.0: + resolution: {integrity: sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.5 + acorn: 8.11.2 + commander: 2.20.3 + source-map-support: 0.5.21 + dev: false + /test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} @@ -32198,6 +32324,13 @@ packages: querystring: 0.2.0 dev: false + /url@0.11.3: + resolution: {integrity: sha512-6hxOLGfZASQK/cijlZnZJTq8OXAkt/3YGfQX45vvMYXpZoo8NdWZcY73K108Jf759lS1Bv/8wXnHDTSz17dSRw==} + dependencies: + punycode: 1.4.1 + qs: 6.11.2 + dev: false + /use-callback-ref@1.3.0(@types/react@18.0.21)(react@18.2.0): resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==} engines: {node: '>=10'} diff --git a/tests/e2e/builder/package.json b/tests/e2e/builder/package.json index 8ffbb7aa082c..60d1ba232b8e 100644 --- a/tests/e2e/builder/package.json +++ b/tests/e2e/builder/package.json @@ -16,7 +16,7 @@ "vue": "^3.3.4" }, "devDependencies": { - "@rsbuild/shared": "0.3.4", + "@rsbuild/shared": "0.3.7", "@modern-js/uni-builder": "workspace:*", "@modern-js/builder-plugin-swc": "workspace:*", "@modern-js/e2e": "workspace:*",