Skip to content

Commit

Permalink
feat(cli): bump Rsbuild v0.7 (#12903)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jun 2, 2024
1 parent f6b0ea0 commit 827e86a
Show file tree
Hide file tree
Showing 3 changed files with 391 additions and 152 deletions.
10 changes: 6 additions & 4 deletions packages/vant-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
"dependencies": {
"@babel/core": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@rsbuild/core": "0.6.15",
"@rsbuild/plugin-babel": "0.6.15",
"@rsbuild/plugin-vue": "0.6.15",
"@rsbuild/plugin-vue-jsx": "0.6.15",
"@rsbuild/core": "0.7.2",
"@rsbuild/plugin-babel": "0.7.2",
"@rsbuild/plugin-less": "0.7.2",
"@rsbuild/plugin-sass": "0.7.2",
"@rsbuild/plugin-vue": "0.7.2",
"@rsbuild/plugin-vue-jsx": "0.7.2",
"@vant/eslint-config": "workspace:^",
"@vant/touch-emulator": "workspace:^",
"@vitejs/plugin-vue": "^5.0.5",
Expand Down
4 changes: 4 additions & 0 deletions packages/vant-cli/src/compiler/compile-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export async function compileSite(isProd = false) {
const { pluginVue } = await import('@rsbuild/plugin-vue');
const { pluginVueJsx } = await import('@rsbuild/plugin-vue-jsx');
const { pluginBabel } = await import('@rsbuild/plugin-babel');
const { pluginSass } = await import('@rsbuild/plugin-sass');
const { pluginLess } = await import('@rsbuild/plugin-less');

await genSiteEntry();

Expand All @@ -57,6 +59,8 @@ export async function compileSite(isProd = false) {
}),
pluginVue(),
pluginVueJsx(),
pluginSass(),
pluginLess(),
],
source: {
entry: {
Expand Down
Loading

0 comments on commit 827e86a

Please sign in to comment.