This commit is contained in:
2026-04-14 20:24:08 +01:00
parent d6f0a7962e
commit b597e1420e
9 changed files with 23 additions and 9 deletions
+4
View File
@@ -4,6 +4,7 @@ import grabDirNames from "../../utils/grab-dir-names";
import fullRebuild from "./full-rebuild";
import { AppData } from "../../data/app-data";
import checkExcludedPatterns from "../../utils/check-excluded-patterns";
import pagesSSRBundler from "../bundler/pages-ssr-bundler";
const { ROOT_DIR } = grabDirNames();
export default async function watcherEsbuildCTX() {
const pages_src_watcher = watch(ROOT_DIR, {
@@ -19,6 +20,9 @@ export default async function watcherEsbuildCTX() {
await fullRebuild({ msg: `Restarting Bundler ...` });
global.BUNDLER_CTX_DISPOSED = false;
}
if (global.SSR_BUNDLER_CTX_DISPOSED) {
pagesSSRBundler();
}
if (filename.endsWith(AppData["BunextTmpFileExt"])) {
return;
}