qwik
qwik copied to clipboard
feat: export the symbol mapper
Overview
Builds on top of @wmertens changes in #6629
For a given symbol (QRL such as onKeydown$) the server needs to know which bundle the symbol is in.
Normally this is provided by Qwik's q-manifest . But q-manifest only exists after a full client build.
This would be a problem in dev mode. So in dev mode the symbol is mapped to the expected URL using the symbolMapper function above. For Vite the given path is fixed for a given symbol.
We export this symbolMapper function for systems that do not use Qwik's ssr dev server, such as the Qwik Astro integration, which uses Astro's vite dev server.
What is it?
- [ ] Feature / enhancement
- [ ] Bug
- [ ] Docs / tests / types / typos
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Use cases and why
-
- One use case
-
- Another use case
Checklist:
- [ ] My code follows the developer guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] Added new tests to cover the fix / functionality
Deploy request for qwik-insights pending review.
Visit the deploys page to approve it
| Name | Link |
|---|---|
| Latest commit | 12be2e5eb719fe2476ccf687b490542d66edba92 |