Skip to content

Commit

Permalink
feat: 升级@mango-scripts/react-scripts rsbuild版本
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertLin0923 committed Apr 13, 2024
1 parent d6b6784 commit 7a9bf6e
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 106 deletions.
14 changes: 7 additions & 7 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"@mango-scripts/babel-preset-mango": "^0.0.2",
"@mango-scripts/utils": "^2.0.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@rsbuild/core": "^0.5.9",
"@rsbuild/plugin-babel": "^0.5.9",
"@rsbuild/plugin-check-syntax": "^0.5.9",
"@rsbuild/plugin-react": "^0.5.9",
"@rsbuild/plugin-stylus": "^0.5.9",
"@rsbuild/plugin-svgr": "^0.5.9",
"@rsbuild/plugin-type-check": "^0.5.9",
"@rsbuild/core": "^0.6.1",
"@rsbuild/plugin-babel": "^0.6.1",
"@rsbuild/plugin-check-syntax": "^0.6.1",
"@rsbuild/plugin-react": "^0.6.1",
"@rsbuild/plugin-stylus": "^0.6.1",
"@rsbuild/plugin-svgr": "^0.6.1",
"@rsbuild/plugin-type-check": "^0.6.1",
"@svgr/webpack": "^8.1.0",
"@swc/core": "^1.4.12",
"@swc/helpers": "^0.5.8",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-scripts/src/rsbuild/config/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const getRsbuildConfig = async (
media: '[name].[contenthash:16][ext]',
},
},
html: {
template: paths.appHtml,
},
tools: {
bundlerChain(chain, utils) {
chain.module
Expand Down
Loading

0 comments on commit 7a9bf6e

Please sign in to comment.