Dev Server Refresh Bugfix. Loop happens after a file route is refactored to a folder route with index.ts
This commit is contained in:
parent
a19863b3e9
commit
45509deff8
@ -61,6 +61,7 @@ export default async function grabPageComponent(params) {
|
|||||||
await fullRebuild({
|
await fullRebuild({
|
||||||
msg: `Retrying Bundle map for file \`${file_path}\``,
|
msg: `Retrying Bundle map for file \`${file_path}\``,
|
||||||
});
|
});
|
||||||
|
await Bun.sleep(1000);
|
||||||
bundledMap = global.BUNDLER_CTX_MAP[file_path];
|
bundledMap = global.BUNDLER_CTX_MAP[file_path];
|
||||||
if (bundledMap?.path)
|
if (bundledMap?.path)
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/bunext",
|
"name": "@moduletrace/bunext",
|
||||||
"version": "1.0.97",
|
"version": "1.0.98",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -105,6 +105,7 @@ export default async function grabPageComponent(
|
|||||||
await fullRebuild({
|
await fullRebuild({
|
||||||
msg: `Retrying Bundle map for file \`${file_path}\``,
|
msg: `Retrying Bundle map for file \`${file_path}\``,
|
||||||
});
|
});
|
||||||
|
await Bun.sleep(1000);
|
||||||
bundledMap = global.BUNDLER_CTX_MAP[file_path];
|
bundledMap = global.BUNDLER_CTX_MAP[file_path];
|
||||||
if (bundledMap?.path) break;
|
if (bundledMap?.path) break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user