Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump rsbuild 1.2.0 beta #6712

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/plugin-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@modern-js/utils": "workspace:*",
"@rsbuild/core": "1.1.13",
"@rsbuild/core": "1.2.0-beta.0",
"@rsbuild/plugin-webpack-swc": "1.0.9",
"@swc/helpers": "0.5.13"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/rsbuild-plugin-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"webpack": "^5.97.1"
},
"devDependencies": {
"@rsbuild/core": "1.1.13",
"@rsbuild/core": "1.2.0-beta.0",
"@rsbuild/webpack": "1.1.6",
"@scripts/build": "workspace:*",
"typescript": "^5.4.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@modern-js/babel-preset": "workspace:*",
"@modern-js/utils": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@rsbuild/core": "1.1.13",
"@rsbuild/core": "1.2.0-beta.0",
"@rsbuild/plugin-assets-retry": "1.0.7",
"@rsbuild/plugin-babel": "1.0.3",
"@rsbuild/plugin-check-syntax": "1.2.0",
Expand All @@ -45,7 +45,7 @@
"@rsbuild/plugin-rem": "1.0.2",
"@rsbuild/plugin-sass": "1.1.2",
"@rsbuild/plugin-source-build": "1.0.2",
"@rsbuild/plugin-styled-components": "1.1.0",
"@rsbuild/plugin-styled-components": "1.2.0",
"@rsbuild/plugin-svgr": "1.0.6",
"@rsbuild/plugin-toml": "1.0.1",
"@rsbuild/plugin-type-check": "1.2.0",
Expand Down
60 changes: 36 additions & 24 deletions packages/cli/uni-builder/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -886,7 +886,9 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
HotModuleReplacementPlugin {
"name": "HotModuleReplacementPlugin",
},
Expand Down Expand Up @@ -1003,13 +1005,13 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -1304,7 +1306,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -1765,7 +1767,9 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
DefinePlugin {
"_args": [
{
Expand Down Expand Up @@ -1817,13 +1821,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -2160,7 +2164,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -2767,7 +2771,9 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
CssExtractRspackPlugin {
"options": {
"chunkFilename": "static/css/async/[name].[contenthash:8].css",
Expand Down Expand Up @@ -2869,13 +2875,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -3141,7 +3147,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -3584,7 +3590,9 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
DefinePlugin {
"_args": [
{
Expand Down Expand Up @@ -3636,13 +3644,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -4084,7 +4092,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -4729,7 +4737,9 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
HotModuleReplacementPlugin {
"options": {},
},
Expand Down Expand Up @@ -4874,13 +4884,13 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -5347,7 +5357,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -6063,7 +6073,9 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
MiniCssExtractPlugin {
"_sortedModulesCache": WeakMap {},
"options": {
Expand Down Expand Up @@ -6234,13 +6246,13 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ exports[`uni-builder environment compat > should generator environment config co
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -887,7 +887,9 @@ exports[`uni-builder environment compat > should generator environment config co
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
HotModuleReplacementPlugin {
"name": "HotModuleReplacementPlugin",
},
Expand Down Expand Up @@ -984,13 +986,13 @@ exports[`uni-builder environment compat > should generator environment config co
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -1257,7 +1259,7 @@ exports[`uni-builder environment compat > should generator environment config co
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -1683,7 +1685,9 @@ exports[`uni-builder environment compat > should generator environment config co
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
DefinePlugin {
"_args": [
{
Expand Down Expand Up @@ -1735,13 +1739,13 @@ exports[`uni-builder environment compat > should generator environment config co
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down Expand Up @@ -2001,7 +2005,7 @@ exports[`uni-builder environment compat > should generator environment config co
"type": "asset",
},
],
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
},
{
"oneOf": [
Expand Down Expand Up @@ -2409,7 +2413,9 @@ exports[`uni-builder environment compat > should generator environment config co
"hints": false,
},
"plugins": [
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
DefinePlugin {
"_args": [
{
Expand Down Expand Up @@ -2441,13 +2447,13 @@ exports[`uni-builder environment compat > should generator environment config co
},
"extensionAlias": {
".js": [
".js",
".ts",
".tsx",
".js",
],
".jsx": [
".tsx",
".jsx",
".tsx",
],
},
"extensions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

exports[`html minify > should not apply html minify in production when disableMinimize 1`] = `
[
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
MiniCssExtractPlugin {
"_sortedModulesCache": WeakMap {},
"options": {
Expand Down Expand Up @@ -133,7 +135,9 @@ exports[`html minify > should not apply html minify in production when disableMi

exports[`html minify > should not apply html minify when htmlPlugin.minify false 1`] = `
[
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
MiniCssExtractPlugin {
"_sortedModulesCache": WeakMap {},
"options": {
Expand Down Expand Up @@ -264,7 +268,9 @@ exports[`html minify > should not apply html minify when htmlPlugin.minify false

exports[`html minify > should not apply html plugin when htmlPlugin false 1`] = `
[
RsbuildCorePlugin {},
{
"name": "RsbuildCorePlugin",
},
MiniCssExtractPlugin {
"_sortedModulesCache": WeakMap {},
"options": {
Expand Down
Loading
Loading