Skip to content

Commit

Permalink
fix: dependency check
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Dec 12, 2023
1 parent 8717cfa commit 8cb6f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CompileCode/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class SessionBuild {
}

async dependence(smallPath: string, fullPath = BasicSettings.fullWebSitePath + smallPath) {
if (this.dependencies[smallPath]) return;
if (this.dependencies[smallPath]) return true;

const haveDep = await EasyFs.stat(fullPath, 'mtimeMs', true, null); // check page changed date, for dependenceObject;
if (haveDep) {
Expand Down Expand Up @@ -201,4 +201,4 @@ export class SessionBuild {
BuildScriptWithPrams(code: StringTracker) {
return PluginScript(code, isTs(), this);
}
}
}

0 comments on commit 8cb6f15

Please sign in to comment.