Dev Server Refresh Bugfix. Loop happens after a file route is refactored to a folder route with index.ts

This commit is contained in:
Benjamin Toby 2026-07-29 13:55:23 +01:00
parent a19863b3e9
commit 45509deff8
3 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,7 @@ export default async function grabPageComponent(params) {
await fullRebuild({
msg: `Retrying Bundle map for file \`${file_path}\``,
});
await Bun.sleep(1000);
bundledMap = global.BUNDLER_CTX_MAP[file_path];
if (bundledMap?.path)
break;

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/bunext",
"version": "1.0.97",
"version": "1.0.98",
"main": "dist/index.js",
"module": "index.ts",
"dependencies": {

View File

@ -105,6 +105,7 @@ export default async function grabPageComponent(
await fullRebuild({
msg: `Retrying Bundle map for file \`${file_path}\``,
});
await Bun.sleep(1000);
bundledMap = global.BUNDLER_CTX_MAP[file_path];
if (bundledMap?.path) break;
}