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

Virtual response namespace unification #2198

Merged
merged 15 commits into from
Dec 17, 2024
Merged

Virtual response namespace unification #2198

merged 15 commits into from
Dec 17, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Dec 6, 2024

At present, it's not possible to generate a virtual response whose path is in the same namespace as the real modules. Integrations like vite are allowed to keep their virtual responses in a different namespace.

But I think we can rely on other forms of metadata propagation in all supported build systems, so that whether a response is virtual doesn't need to depend solely on its path.

This would make it possible to emit virtual modules that live in the same namespace as all the real files, which would also make things like component template colocation possible to implement entirely within the core module resolver.

@ef4 ef4 added the internal label Dec 6, 2024
@mansona
Copy link
Member

mansona commented Dec 13, 2024

it looks like the addon-dev-watch windows flakey test might be fixed by #2208 🤔 it's worth reviewing (I haven't had a chance to check the code yet)

@ef4 ef4 force-pushed the unify-virtual-namespace branch from bba7c7e to df878c6 Compare December 14, 2024 05:24
@ef4 ef4 force-pushed the unify-virtual-namespace branch from df878c6 to 26979eb Compare December 14, 2024 05:29
@ef4
Copy link
Contributor Author

ef4 commented Dec 16, 2024

All green on the core change here. Now we can clean up the parameter passing to the virtual content renderers.

@mansona
Copy link
Member

mansona commented Dec 17, 2024

I assume we could solve that in a follow up PR now that this is green?

@ef4 ef4 marked this pull request as ready for review December 17, 2024 14:17
@ef4 ef4 merged commit e6197c7 into main Dec 17, 2024
211 checks passed
@ef4 ef4 deleted the unify-virtual-namespace branch December 17, 2024 14:20
@github-actions github-actions bot mentioned this pull request Dec 17, 2024
ef4 added a commit that referenced this pull request Dec 19, 2024
This is followup to #2198.

Now that virtual responses are passed directly through the host build environment, we don't need to parse speciiers to get the parameters for virtual content rendering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants