Closed HaidarJbeily7 closed 1 week ago
@maxonfjvipon I have made the requested changes.
Closes: #37
@rultor merge
@rultor merge
@maxonfjvipon OK, I'll try to merge now. You can check the progress of the merge here.
@rultor merge
@maxonfjvipon Done! FYI, the full log is here (took me 20min).
@HaidarJbeily7 Thanks
Overview:
Added utility function to skip unnecessary transpilation when source files haven't been modified. This optimization compares file modification timestamps to determine if retranspilation is needed, improving build performance.
Changes:
PR-Codex overview
This PR refactors the transpilation process by introducing a
prepare
function, modifying thetranspile
function to use it, and adding aneedsRetranspile
check to optimize file processing. It also enhances test cases for retranspilation based on file modifications.Detailed summary
transpile
function toprepare
.transpile
function that callsprepare
.retranspile
function to handle cases when files are modified.needsRetranspile
function to check modification times.transform
function to useneedsRetranspile
.