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

feat(react): add remote to tspaths for typing #19276

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Sep 21, 2023

Current Behavior

We currently declare Remote applications in a .d.ts file on the host. This is very limited and does not actually provide any typing or intellisense support.

Expected Behavior

Use TSPaths to allow for typing and intellisense support for remote applications.
This also allows for the remotes to be used in libraries much easier, providing a basis for federating more than just routes and being able to use them across libraries.

Testing tools such as Jest, which do not know or are not built with webpack, are also able to correctly follow the TS Path to find the implementation of the import, meaning there will be no issues with unit testing libraries that use federated modules from remotes.

Related Issue(s)

Fixes #

@Coly010 Coly010 self-assigned this Sep 21, 2023
@vercel
Copy link

vercel bot commented Sep 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Sep 22, 2023 9:18am

@Coly010 Coly010 marked this pull request as ready for review September 28, 2023 14:56
@Coly010 Coly010 requested review from a team as code owners September 28, 2023 14:56
@Coly010 Coly010 merged commit a9a551d into nrwl:master Sep 28, 2023
6 checks passed
@Coly010 Coly010 deleted the mf/use-ts-paths-for-remotes branch September 28, 2023 14:57
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants