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: resolve jsxImportSource relative to module #15561

Merged
merged 4 commits into from
Aug 24, 2022

Conversation

lucacasonato
Copy link
Member

Previously jsxImportSource was resolved relative to the config file
during graph building, and relative to the emitted module during
runtime.

This is now fixed so that the JSX import source is resolved relative to
the module both during graph building and at runtime.

Fixes #15559

Previously `jsxImportSource` was resolved relative to the config file
during graph building, and relative to the emitted module during
runtime.

This is now fixed so that the JSX import source is resolved relative to
the module both during graph building and at runtime.
Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending upstream package publish.

Clean and effective!

Cargo.toml Outdated Show resolved Hide resolved
@lucacasonato lucacasonato marked this pull request as ready for review August 24, 2022 16:53
@bartlomieju bartlomieju merged commit 33c4d45 into denoland:main Aug 24, 2022
@bartlomieju bartlomieju deleted the jsx_import_source_fix branch August 24, 2022 17:36
bartlomieju added a commit that referenced this pull request Jul 6, 2023
This commit adds some regression tests for using `jsxImportSource` in
the config file in combination with an import map.

These underlying issues were fixed by #15561.

Closes #13389
Closes #14723

---------

Co-authored-by: Aapo Alasuutari <[email protected]>
Co-authored-by: Bartek Iwańczuk <[email protected]>
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.

jsxImportSource resolution in config files
4 participants