From fbea4c84dc00dbfaa0921b259a32f004fc17464d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Tue, 23 Sep 2025 12:54:26 +0200 Subject: [PATCH] add debug logging for static file asset registration --- packages/rspack/rspack_server.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/rspack/rspack_server.js b/packages/rspack/rspack_server.js index 477ecfbcc3..3caf7f82a3 100644 --- a/packages/rspack/rspack_server.js +++ b/packages/rspack/rspack_server.js @@ -9,6 +9,7 @@ import { RSPACK_ASSETS_CONTEXT, RSPACK_HOT_UPDATE_REGEX, } from "./lib/constants"; +import { isMeteorAppDebug } from "meteor/tools-core/lib/meteor"; // Define constants for both development and production const rspackChunksContext = process.env.RSPACK_CHUNKS_CONTEXT || RSPACK_CHUNKS_CONTEXT; @@ -145,6 +146,10 @@ function registerRspackStaticAsset(arch, pathname, filePath) { if (staticFiles[pathname]) { // Ensure the entry is marked as cacheable staticFiles[pathname].cacheable = true; + + if (isMeteorAppDebug()) { + console.log(`Registering rspack asset: ${archName} ${pathname} cacheable ${staticFiles[pathname].cacheable}`); + } return staticFiles[pathname]; } @@ -165,6 +170,10 @@ function registerRspackStaticAsset(arch, pathname, filePath) { type }; + if (isMeteorAppDebug()) { + console.log(`Registering rspack asset: ${archName} ${pathname} cacheable ${staticFiles[pathname].cacheable}`); + } + return staticFiles[pathname]; }