tsconfig-replace-paths
tsconfig-replace-paths copied to clipboard
Fix removing the extension from moduleSrc
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
.