Skip to content

Commit

Permalink
feat(deps): bump Rsbuild 1.0.11 (#6338)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Oct 9, 2024
1 parent ed0d1f9 commit afa4880
Show file tree
Hide file tree
Showing 21 changed files with 461 additions and 443 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-hotels-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/uni-builder': patch
---

feat(deps): bump rsbuild 1.0.11
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.0.7",
"@rsbuild/core": "~1.0.11",
"@rsbuild/plugin-webpack-swc": "~1.0.3",
"@swc/helpers": "0.5.13"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/rsbuild-plugin-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"webpack": "^5.95.0"
},
"devDependencies": {
"@rsbuild/core": "~1.0.7",
"@rsbuild/webpack": "~1.0.7",
"@rsbuild/core": "~1.0.11",
"@rsbuild/webpack": "~1.0.9",
"@scripts/build": "workspace:*",
"typescript": "^5.4.2"
},
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@
"@modern-js/babel-preset": "workspace:*",
"@modern-js/utils": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@rsbuild/core": "~1.0.7",
"@rsbuild/core": "~1.0.11",
"@rsbuild/plugin-assets-retry": "~1.0.1",
"@rsbuild/plugin-babel": "~1.0.1",
"@rsbuild/plugin-check-syntax": "~1.0.1",
"@rsbuild/plugin-css-minimizer": "~1.0.2",
"@rsbuild/plugin-less": "~1.0.1",
"@rsbuild/plugin-pug": "~1.0.2",
"@rsbuild/plugin-react": "~1.0.2",
"@rsbuild/plugin-react": "~1.0.3",
"@rsbuild/plugin-rem": "~1.0.1",
"@rsbuild/plugin-sass": "~1.0.1",
"@rsbuild/plugin-sass": "~1.0.2",
"@rsbuild/plugin-source-build": "~1.0.1",
"@rsbuild/plugin-styled-components": "~1.0.1",
"@rsbuild/plugin-svgr": "~1.0.2",
"@rsbuild/plugin-svgr": "~1.0.3",
"@rsbuild/plugin-toml": "~1.0.1",
"@rsbuild/plugin-type-check": "~1.0.1",
"@rsbuild/plugin-typed-css-modules": "~1.0.2",
"@rsbuild/plugin-yaml": "~1.0.2",
"@rsbuild/webpack": "~1.0.7",
"@rsbuild/webpack": "~1.0.9",
"@swc/helpers": "0.5.13",
"autoprefixer": "10.4.20",
"babel-loader": "9.1.3",
Expand Down
10 changes: 0 additions & 10 deletions packages/cli/uni-builder/tests/__snapshots__/babel.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ exports[`plugin-babel (rspack mode) > should not set babel-loader when babel con
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"resolve": {
"alias": {
Expand Down Expand Up @@ -115,7 +114,6 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when babel config
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"resolve": {
"alias": {
Expand Down Expand Up @@ -248,7 +246,6 @@ exports[`plugin-babel > should add core-js-entry when output.polyfill is entry 1
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -515,7 +512,6 @@ exports[`plugin-babel > should apply exclude condition when using source.exclude
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -658,7 +654,6 @@ exports[`plugin-babel > should not add core-js-entry when output.polyfill is usa
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -795,7 +790,6 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -1015,7 +1009,6 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -1419,7 +1412,6 @@ exports[`plugin-babel > should set babel-loader 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -1565,7 +1557,6 @@ exports[`plugin-babel > should set include/exclude 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
"src/**/*.ts",
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
Expand Down Expand Up @@ -1703,7 +1694,6 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down
34 changes: 26 additions & 8 deletions packages/cli/uni-builder/tests/__snapshots__/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,13 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -890,7 +893,9 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
},
ReactRefreshRspackPlugin {
"options": {
"exclude": /node_modules/i,
"exclude": [
/\\[\\\\\\\\/\\]node_modules\\[\\\\\\\\/\\]/,
],
"forceEnable": false,
"include": [
/\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
Expand Down Expand Up @@ -918,7 +923,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
},
"target": [
"web",
"es5",
"browserslist:> 0.01%,not dead,not op_mini all",
],
}
`;
Expand Down Expand Up @@ -1663,10 +1668,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -1827,7 +1835,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"resolve": {
"alias": {
Expand Down Expand Up @@ -2605,10 +2612,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -2662,7 +2672,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
},
"target": [
"web",
"es5",
"browserslist:> 0.01%,not dead,not op_mini all",
],
}
`;
Expand Down Expand Up @@ -3333,10 +3343,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -3390,7 +3403,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
},
"target": [
"webworker",
"es2018",
"es5",
],
}
`;
Expand Down Expand Up @@ -4421,10 +4434,13 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
ProgressPlugin {
Expand Down Expand Up @@ -4508,7 +4524,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
},
"target": [
"web",
"es5",
"browserslist:> 0.01%,not dead,not op_mini all",
],
}
`;
Expand Down Expand Up @@ -4631,7 +4647,6 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]dist\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -5632,10 +5647,13 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
},
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"production\\"",
"import.meta.env.PROD": true,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
ProgressPlugin {
Expand Down Expand Up @@ -5710,7 +5728,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
},
"target": [
"web",
"es5",
"browserslist:> 0.01%,not dead,not op_mini all",
],
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,13 @@ exports[`uni-builder environment compat > should generator environment config co
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand All @@ -871,7 +874,9 @@ exports[`uni-builder environment compat > should generator environment config co
},
ReactRefreshRspackPlugin {
"options": {
"exclude": /node_modules/i,
"exclude": [
/\\[\\\\\\\\/\\]node_modules\\[\\\\\\\\/\\]/,
],
"forceEnable": false,
"include": [
/\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
Expand Down Expand Up @@ -899,7 +904,7 @@ exports[`uni-builder environment compat > should generator environment config co
},
"target": [
"web",
"es5",
"browserslist:> 0.01%,not dead,not op_mini all",
],
},
{
Expand Down Expand Up @@ -1549,10 +1554,13 @@ exports[`uni-builder environment compat > should generator environment config co
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -2236,10 +2244,13 @@ exports[`uni-builder environment compat > should generator environment config co
DefinePlugin {
"_args": [
{
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": true,
"import.meta.env.MODE": "\\"development\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
],
"affectedHooks": "compilation",
Expand Down Expand Up @@ -2273,7 +2284,7 @@ exports[`uni-builder environment compat > should generator environment config co
},
"target": [
"webworker",
"es2018",
"es5",
],
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ exports[`plugin-global-vars > 'globalVars function' 1`] = `
[
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"none\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
DefinePlugin {
Expand All @@ -23,10 +26,13 @@ exports[`plugin-global-vars > 'globalVars' 1`] = `
[
DefinePlugin {
"definitions": {
"import.meta.env.ASSET_PREFIX": "\\"\\"",
"import.meta.env.BASE_URL": "\\"/\\"",
"import.meta.env.DEV": false,
"import.meta.env.MODE": "\\"none\\"",
"import.meta.env.PROD": false,
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.BASE_URL": "\\"/\\"",
},
},
DefinePlugin {
Expand Down
Loading

0 comments on commit afa4880

Please sign in to comment.