Skip to content

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

deps: move html2canvas to a separate bundle (#64708)

Uladzimir Havenchyk0a2aa0f0871a
diff --git a/rspack.main.config.js b/rspack.main.config.js
index c4aa6c62b8c..def5265947d 100644
--- a/rspack.main.config.js
+++ b/rspack.main.config.js
@@ -252,7 +252,7 @@ const config = {
splitChunks: {
cacheGroups: {
vendors: {
- test: /[\\/]node_modules[\\/](?!(sql-formatter|jspdf|html2canvas-pro)[\\/])/,
+ test: /[\\/]node_modules[\\/](?!(sql-formatter|jspdf|html2canvas|html2canvas-pro)[\\/])/,
chunks: "all",
name: "vendor",
},
@@ -267,7 +267,7 @@ const config = {
name: "jspdf",
},
html2canvas: {
- test: /[\\/]node_modules[\\/]html2canvas-pro[\\/]/,
+ test: /[\\/]node_modules[\\/](html2canvas|html2canvas-pro)[\\/]/,
chunks: "all",
name: "html2canvas",
},