Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
osyrisrblx committed Sep 10, 2024
1 parent aeaca6f commit 6330101
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PathTranslator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ export class PathTranslator {
pathInfo.exts.push(this.getLuauExt()); // push .lua(u)
}

// inside of node_modules, we assume compiled file is sibling of filePath
// outside, we check relative to outDir
return isNodeModule ? pathInfo.join() : makeRelative(pathInfo);
}
}

0 comments on commit 6330101

Please sign in to comment.