Skip to content

Commit

Permalink
chore(deps): bump rsbuild to 0.6.10 (#5712)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
9aoy and github-actions[bot] committed May 6, 2024
1 parent b1db211 commit 9016146
Show file tree
Hide file tree
Showing 25 changed files with 1,655 additions and 349 deletions.
2 changes: 1 addition & 1 deletion packages/cli/plugin-bff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@swc/helpers": "0.5.3"
},
"devDependencies": {
"@rsbuild/shared": "0.6.8",
"@rsbuild/shared": "0.6.10",
"@modern-js/runtime": "workspace:*",
"@modern-js/core": "workspace:*",
"@modern-js/bff-runtime": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/plugin-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"test": "jest"
},
"dependencies": {
"@rsbuild/core": "0.6.8",
"@rsbuild/plugin-swc": "0.6.8",
"@rsbuild/core": "0.6.10",
"@rsbuild/plugin-swc": "0.6.10",
"@modern-js/utils": "workspace:*",
"@swc/helpers": "0.5.3"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/rsbuild-plugin-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
},
"dependencies": {
"@swc/helpers": "0.5.3",
"@rsbuild/shared": "0.6.8",
"@rsbuild/shared": "0.6.10",
"esbuild": "0.17.19",
"webpack": "^5.91.0"
},
"devDependencies": {
"@scripts/build": "workspace:*",
"@rsbuild/core": "0.6.8",
"@rsbuild/webpack": "0.6.8",
"@rsbuild/core": "0.6.10",
"@rsbuild/webpack": "0.6.10",
"typescript": "^5.4.2"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions packages/cli/rsbuild-plugin-esbuild/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function pluginEsbuild(
...options?.loader,
});
applyScriptCondition({
chain,
rule,
config: rsbuildConfig,
context: api.context,
Expand Down
36 changes: 18 additions & 18 deletions packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.8",
"@rsbuild/core": "0.6.8",
"@rsbuild/plugin-assets-retry": "0.6.8",
"@rsbuild/plugin-babel": "0.6.8",
"@rsbuild/plugin-check-syntax": "0.6.8",
"@rsbuild/plugin-css-minimizer": "0.6.8",
"@rsbuild/plugin-pug": "0.6.8",
"@rsbuild/plugin-react": "0.6.8",
"@rsbuild/plugin-rem": "0.6.8",
"@rsbuild/plugin-source-build": "0.6.8",
"@rsbuild/plugin-styled-components": "0.6.8",
"@rsbuild/plugin-svgr": "0.6.8",
"@rsbuild/plugin-type-check": "0.6.8",
"@rsbuild/plugin-toml": "0.6.8",
"@rsbuild/plugin-yaml": "0.6.8",
"@rsbuild/shared": "0.6.8",
"@rsbuild/webpack": "0.6.8",
"@rsbuild/babel-preset": "0.6.10",
"@rsbuild/core": "0.6.10",
"@rsbuild/plugin-assets-retry": "0.6.10",
"@rsbuild/plugin-babel": "0.6.10",
"@rsbuild/plugin-check-syntax": "0.6.10",
"@rsbuild/plugin-css-minimizer": "0.6.10",
"@rsbuild/plugin-pug": "0.6.10",
"@rsbuild/plugin-react": "0.6.10",
"@rsbuild/plugin-rem": "0.6.10",
"@rsbuild/plugin-source-build": "0.6.10",
"@rsbuild/plugin-styled-components": "0.6.10",
"@rsbuild/plugin-svgr": "0.6.10",
"@rsbuild/plugin-type-check": "0.6.10",
"@rsbuild/plugin-toml": "0.6.10",
"@rsbuild/plugin-yaml": "0.6.10",
"@rsbuild/shared": "0.6.10",
"@rsbuild/webpack": "0.6.10",
"@swc/helpers": "0.5.3",
"babel-loader": "9.1.3",
"babel-plugin-import": "1.13.5",
Expand All @@ -77,7 +77,7 @@
"webpack-subresource-integrity": "5.1.0"
},
"devDependencies": {
"@rsbuild/plugin-swc": "0.6.8",
"@rsbuild/plugin-swc": "0.6.10",
"@scripts/build": "workspace:*",
"@scripts/vitest-config": "workspace:*",
"@types/lodash": "^4.14.202",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/uni-builder/src/webpack/plugins/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export const pluginBabel = (
const rule = chain.module.rule(CHAIN_ID.RULE.JS);

applyScriptCondition({
chain,
rule,
config,
context: api.context,
Expand Down
1 change: 1 addition & 0 deletions packages/cli/uni-builder/src/webpack/plugins/tsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const pluginTsLoader = (
const rule = chain.module.rule(CHAIN_ID.RULE.TS);

applyScriptCondition({
chain,
rule,
config,
context: api.context,
Expand Down
34 changes: 22 additions & 12 deletions packages/cli/uni-builder/tests/__snapshots__/babel.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports[`plugin-babel (rspack mode) > should not set babel-loader when babel con
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -102,6 +103,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when babel config
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"type": "javascript/auto",
Expand Down Expand Up @@ -222,6 +224,7 @@ exports[`plugin-babel > should add core-js-entry when output.polyfill is entry 1
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -250,7 +253,7 @@ exports[`plugin-babel > should add core-js-entry when output.polyfill is entry 1
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -486,6 +489,7 @@ exports[`plugin-babel > should apply exclude condition when using source.exclude
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -514,7 +518,7 @@ exports[`plugin-babel > should apply exclude condition when using source.exclude
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -627,6 +631,7 @@ exports[`plugin-babel > should not add core-js-entry when output.polyfill is usa
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -655,7 +660,7 @@ exports[`plugin-babel > should not add core-js-entry when output.polyfill is usa
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -762,6 +767,7 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -790,7 +796,7 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -898,7 +904,7 @@ exports[`plugin-babel > should not have any pluginImport in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -980,6 +986,7 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -1008,7 +1015,7 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1135,7 +1142,7 @@ exports[`plugin-babel > should not set default pluginImport for Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1270,7 +1277,7 @@ exports[`plugin-babel > should override targets of babel-preset-env when using o
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1381,6 +1388,7 @@ exports[`plugin-babel > should set babel-loader 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -1409,7 +1417,7 @@ exports[`plugin-babel > should set babel-loader 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1525,6 +1533,7 @@ exports[`plugin-babel > should set include/exclude 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
"src/**/*.ts",
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
Expand Down Expand Up @@ -1554,7 +1563,7 @@ exports[`plugin-babel > should set include/exclude 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1661,6 +1670,7 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
],
},
/\\\\\\.\\(\\?:ts\\|tsx\\|jsx\\|mts\\|cts\\)\\$/,
/\\[\\\\\\\\/\\]@rsbuild\\[\\\\\\\\/\\]core\\[\\\\\\\\/\\]/,
],
"test": /\\\\\\.\\(\\?:js\\|jsx\\|mjs\\|cjs\\|ts\\|tsx\\|mts\\|cts\\)\\$/,
"use": [
Expand Down Expand Up @@ -1689,7 +1699,7 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down Expand Up @@ -1824,7 +1834,7 @@ exports[`plugin-babel > should set proper pluginImport option in Babel 1`] = `
"<WORKSPACE>/node_modules/<PNPM_INNER>/@babel/plugin-transform-runtime/lib/index.js",
{
"useESModules": true,
"version": "7.24.4",
"version": "7.24.5",
},
],
"<WORKSPACE>/node_modules/<PNPM_INNER>/@rsbuild/babel-preset/dist/pluginLockCorejsVersion",
Expand Down
Loading

0 comments on commit 9016146

Please sign in to comment.