Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
franzzua committed Dec 6, 2023
1 parent 09556f8 commit e5affa1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/compile/ts-resolve-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class Visitor {
resolve(importPath, sourceFile){
importPath = this.resolveFile(importPath, sourceFile);
const sourceFileDir = path.dirname(sourceFile.fileName);
const caseSensitiveFileNames = this.context.getEmitHost().useCaseSensitiveFileNames();
const formatPath = caseSensitiveFileNames ? x => x : x => x.toLowerCase();
const absSource = path.join(this.options.outDir, path.relative(this.options.baseUrl, sourceFileDir));
const abs = path.resolve(sourceFileDir, importPath);
if (this.config.import.test(importPath)) {
Expand All @@ -85,9 +83,6 @@ class Visitor {
return importPath+".js";
}
if (this.config.copy.test(importPath)) {
// console.log(abs, absSource, path.relative(absSource,abs));
// const outFile = path.resolve(absSource, importPath).replaceAll(path.sep, '/');
// fs.cpSync(path.resolve(sourceFileDir, importPath), outFile);
return path.relative(absSource,abs);
}
return importPath;
Expand Down

0 comments on commit e5affa1

Please sign in to comment.