Update bundler logic
This commit is contained in:
@@ -31,7 +31,7 @@ export default function esbuildCTXArtifactTracker({
|
||||
if (build_starts == MAX_BUILD_STARTS) {
|
||||
const error_msg = `Build Failed. Please check all your components and imports.`;
|
||||
log.error(error_msg);
|
||||
global.BUNDLER_CTX?.cancel();
|
||||
global.RECOMPILING = false;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -52,6 +52,8 @@ export default function esbuildCTXArtifactTracker({
|
||||
entryToPage,
|
||||
});
|
||||
|
||||
// console.log("artifacts", artifacts);
|
||||
|
||||
if (artifacts?.[0] && artifacts.length > 0) {
|
||||
for (let i = 0; i < artifacts.length; i++) {
|
||||
const artifact = artifacts[i];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { Plugin } from "esbuild";
|
||||
import path from "path";
|
||||
import type { PageFiles } from "../../../types";
|
||||
import { log } from "../../../utils/log";
|
||||
|
||||
type Params = {
|
||||
entryToPage: Map<
|
||||
|
||||
Reference in New Issue
Block a user