Remove all Loader.registry.delete lines

This commit is contained in:
2026-07-29 14:05:12 +01:00
parent 45509deff8
commit 88ead3b3d6
10 changed files with 9 additions and 147 deletions
@@ -38,7 +38,7 @@ export default async function grabFilePathModule<T extends any = any>({
outfile: target_cache_file_path,
});
Loader.registry.delete(target_cache_file_path);
// Loader.registry.delete(target_cache_file_path);
const module = await import(`${target_cache_file_path}?t=${Date.now()}`);
return module as T;
@@ -24,7 +24,7 @@ export default async function grabPageBundledReactComponent({
ROOT_DIR,
global.SSR_BUNDLER_CTX_MAP[file_path].path,
);
Loader.registry.delete(abs);
// Loader.registry.delete(abs);
const mod = await import(`${abs}?t=${Date.now()}`);
const Main = mod.default as FC;
@@ -41,7 +41,7 @@ export default async function grabPageCombinedServerRes({
: root_server_file_path;
if (final_root_server_path) {
Loader.registry.delete(final_root_server_path);
// Loader.registry.delete(final_root_server_path);
}
const root_server_module: BunextPageServerModule = final_root_server_path
? await import(`${final_root_server_path}?t=${now}`)
@@ -69,7 +69,7 @@ export default async function grabPageCombinedServerRes({
: server_file_path;
if (final_page_server_path) {
Loader.registry.delete(final_page_server_path);
// Loader.registry.delete(final_page_server_path);
}
const server_module: BunextPageServerModule = final_page_server_path
? await import(`${final_page_server_path}?t=${now}`)