tsconfig-replace-paths icon indicating copy to clipboard operation
tsconfig-replace-paths copied to clipboard

Fix removing the extension from moduleSrc

Open tamuratak opened this issue 1 year ago • 0 comments

Fix removing the extension from moduleSrc.

If the directory, or the project name, includes .js, e.g., pdf.js, moduleSrc.replace(moduleExt, '') doesn't work. It converts /pdf.js/a.js to /pdf/a.js.

tamuratak avatar Nov 10 '23 10:11 tamuratak