-
-
Notifications
You must be signed in to change notification settings - Fork 257
Labels
bugSomething isn't workingSomething isn't working
Description
Version
System:
OS: macOS 12.5.1
CPU: (8) arm64 Apple M1 Pro
Memory: 102.58 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Browsers:
Chrome: 129.0.6668.101
Edge: 130.0.2849.46
Safari: 15.6.1
npmPackages:
@rsbuild/core: ^1.0.1 => 1.0.16
@rsbuild/plugin-vue: ^1.0.1 => 1.0.2
Details
- 'vue' rule is not ok, but 'vendors' rule is ok.
chunkSplit: {
override: {
chunks: 'all',
minSize: 30000,
cacheGroups: {
vue: {
name: 'vue-common',
test: /[\\/]node_modules[\\/](vue|vue-router|vue-i18n|pinia)[\\/]/,
priority: 100,
},
vendors: {
name: 'my-chunk-vendors',
test: /[\\/]node_modules[\\/]/,
priority: 20,
},
},
},
},
- Add strategy: 'custom', 'vue' rule is ok, 'vendors' rule is ok too.
chunkSplit: {
strategy: 'custom'
override: {
chunks: 'all',
minSize: 30000,
cacheGroups: {
vue: {
name: 'vue-common',
test: /[\\/]node_modules[\\/](vue|vue-router|vue-i18n|pinia)[\\/]/,
priority: 100,
},
vendors: {
name: 'my-chunk-vendors',
test: /[\\/]node_modules[\\/]/,
priority: 20,
},
},
},
},
Reproduce link
https://github.com/Cheese-Yu/rsbuid-reproduction-mini-repo
Reproduce Steps
run npm run build
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working