Skip to content

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

Disable rspack lazy compilation in dev mode (#74589)

Oleh K6466a6c96414
diff --git a/rspack.main.config.js b/rspack.main.config.js
index a0ab6862a6e..e53f652fc9a 100644
--- a/rspack.main.config.js
+++ b/rspack.main.config.js
@@ -337,6 +337,9 @@ if (shouldEnableHotRefresh) {
config.output.publicPath =
`http://localhost:${PORT}/` + config.output.publicPath;
+ // Disable lazy compilation explicitly to match behavior of rspack 1.x
+ config.lazyCompilation = false;
+
config.devServer = {
port: PORT, // make the port explicit so it errors if it's already in use
hot: true,