Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix issues with module resolution & config parsing #4

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

Js-Brecht
Copy link
Owner

  • Adds support for tsconfig with comments
  • Various process cache fixes
  • Adds alias resolution caching
  • Removes the addition of the resolved file extension
  • Adds support for a module existing side-by-side with directory of the same name (less extension)

Fixes #1
FIxes #2
Fixes #3

@Js-Brecht
Copy link
Owner Author

@IlyaSemenov @fmal @tkodev @pmunin would you guys care to try babel-plugin-tsconfig-paths@1.0.3-rc.1, see if it fixes the issue, and report any other issues? I would very much appreciate your assistance testing these fixes

@ZlydeTJ
Copy link

ZlydeTJ commented May 17, 2022

@Js-Brecht I can confirm that issue #1 and #3 is resolved with this PR. I've installed 1.0.3-rc1 and it works fine.

@tconroy
Copy link

tconroy commented Jun 15, 2022

@Js-Brecht just echoing the above - this resolved #1 for me! Both compiling to CJS and ES6, the extension has been dropped which is fine for my use case.

@Js-Brecht
Copy link
Owner Author

Thanks for the feedback @tconroy @ZlydeTJ. I’ll be able to get back to this pretty soon I hope; not really any free time at moment, but I’m starting to clean up my backlog, so it shouldn’t be too long

@some-dudes-work-account
Copy link

Is there a reason why json5 package was chosen over the jsonc-parser that is used by the TypeScript itself?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
4 participants