Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix(typescript): Allow for using compilerOptions.moduleResolution #1453

Merged
merged 2 commits into from May 12, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Mar 10, 2023

Rollup Plugin Name: typescript

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

Align module resolution with the typescript compiler:
If moduleResolution is set it should be used and only if it is omitted the module setting might be considered.

@susnux susnux requested a review from shellscape as a code owner March 10, 2023 22:26
This adds a test case for resolving types with node ESM `exports` feature
and `compilerOptions.moduleResolution` option configured.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux susnux force-pushed the fix/typescript-moduleresolution branch from 8ad0cd5 to 4bf49e9 Compare April 6, 2023 08:38
@susnux
Copy link
Contributor Author

susnux commented May 12, 2023

Anything I can help with to get this merged?

@shellscape shellscape merged commit eb0cfe0 into rollup:master May 12, 2023
7 checks passed
@shellscape
Copy link
Collaborator

Time is super short right now. Thanks for the ping.

@susnux susnux deleted the fix/typescript-moduleresolution branch May 12, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler Option moduleResolution is ignored and only dependend on module type
5 participants