Skip to content

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

Skip static-viz bundle size budget in dev builds (#77741)

Alexander Polyankind3a8d6743007
diff --git a/rspack.static-viz.config.js b/rspack.static-viz.config.js
index a98be4a953c..13c2de5cdf6 100644
--- a/rspack.static-viz.config.js
+++ b/rspack.static-viz.config.js
@@ -29,7 +29,9 @@ module.exports = (env) => {
// The static-viz bundle runs inside the backend's GraalVM context, so its size is
// a startup-time and memory cost. Fail the build if it grows past the budget -
// sudden growth almost always means app code (metabase/ui, api, metabase-lib) leaked in.
- hints: "error",
+ // Dev builds use the unminified cljs_dev output, so the budget only applies to
+ // production builds.
+ hints: devMode ? false : "error",
maxAssetSize: 3.5 * 1024 * 1024,
maxEntrypointSize: 3.5 * 1024 * 1024,
},