fix text compile

This commit is contained in:
Jacob Nguyen
2024-04-28 21:20:36 -05:00
parent 6105f7b4ef
commit 68c5f09b46
5 changed files with 15 additions and 49 deletions

View File

@@ -13,6 +13,7 @@ export const parseCallsite = (fpath: string) => {
return { name: pathobj.name,
absPath : path.posix.format(pathobj) }
}
export const shouldHandle = (pth: string, filenam: string) => {
const file_name = filenam+path.extname(pth);
let newPath = path.join(path.dirname(pth), file_name)
@@ -22,7 +23,6 @@ export const shouldHandle = (pth: string, filenam: string) => {
}
export type ModuleResult<T> = Promise<ImportPayload<T>>;
/**
* Import any module based on the absolute path.