From e5affa129a7ec1b36dcf5d58648486aec9596811 Mon Sep 17 00:00:00 2001 From: fransua Date: Wed, 6 Dec 2023 18:59:10 +0100 Subject: [PATCH] clean --- tools/compile/ts-resolve-plugin.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/compile/ts-resolve-plugin.js b/tools/compile/ts-resolve-plugin.js index be9cf64..2cc7752 100644 --- a/tools/compile/ts-resolve-plugin.js +++ b/tools/compile/ts-resolve-plugin.js @@ -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)) { @@ -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;