Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

bundle: exclude lazy loaded libs from vendor bundle again (#72061)

Uladzimir Havenchyka5cf9c43c5e2
diff --git a/rspack.main.config.js b/rspack.main.config.js
index de52c4958b1..6047d2e02f9 100644
--- a/rspack.main.config.js
+++ b/rspack.main.config.js
@@ -226,24 +226,28 @@ const config = {
splitChunks: {
cacheGroups: {
vendors: {
- test: /[\\/]node_modules[\\/](?!(sql-formatter|jspdf|html2canvas|html2canvas-pro)[\\/])/,
- chunks: "all",
+ test: /[\\/]node_modules[\\/]/,
+ chunks: "initial",
name: "vendor",
+ priority: -10,
},
sqlFormatter: {
- test: /[\\/]node_modules[\\/]sql-formatter[\\/]/,
+ test: /[\\/]sql-formatter[\\/]/,
chunks: "all",
name: "sql-formatter",
+ priority: 10,
},
jspdf: {
- test: /[\\/]node_modules[\\/]jspdf[\\/]/,
+ test: /[\\/]jspdf[\\/]/,
chunks: "all",
name: "jspdf",
+ priority: 10,
},
html2canvas: {
- test: /[\\/]node_modules[\\/](html2canvas|html2canvas-pro)[\\/]/,
+ test: /[\\/](html2canvas|html2canvas-pro)[\\/]/,
chunks: "all",
name: "html2canvas",
+ priority: 10,
},
},
},