Skip to content

feat(framework): add virtual server-entry module to Vite plugin#149

Merged
qantrepreneur merged 4 commits into
mainfrom
135-virtual-server-entry
May 15, 2026
Merged

feat(framework): add virtual server-entry module to Vite plugin#149
qantrepreneur merged 4 commits into
mainfrom
135-virtual-server-entry

Conversation

@qantrepreneur
Copy link
Copy Markdown
Contributor

Summary

  • Add resolveId and load hooks to frameworkPlugin() so that @sundayceo/framework/server-entry resolves to a virtual module wiring createHandler with app, routes, templates, and errorPages
  • Add ./server-entry subpath export in package.json with a .d.ts for TypeScript resolution
  • Add tests covering resolveId and load behavior for both matching and non-matching module IDs

Closes #135

Test plan

  • resolveId returns virtual module ID for @sundayceo/framework/server-entry
  • resolveId returns undefined for unrelated module IDs
  • load returns generated wiring code for the virtual module ID
  • load returns undefined for non-virtual module IDs
  • No new lint violations introduced

🤖 Generated with Claude Code

Add resolveId and load hooks so that importing
@sundayceo/framework/server-entry resolves to a virtual module that
wires createHandler with app, routes, templates, and errorPages.

Closes #135

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

CI failed for this pull request.

View the failed run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

CI failed for this pull request.

View the failed run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

CI failed for this pull request.

View the failed run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@qantrepreneur qantrepreneur merged commit 65c2b77 into main May 15, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 15, 2026
qantrepreneur added a commit that referenced this pull request May 21, 2026
* feat(framework): add virtual server-entry module to Vite plugin

Add resolveId and load hooks so that importing
@sundayceo/framework/server-entry resolves to a virtual module that
wires createHandler with app, routes, templates, and errorPages.

Closes #135

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(framework): resolve lint errors in server-entry and vite-plugin test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style(framework): fix prettier formatting in vite-plugin files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(framework): reduce frameworkPlugin line count with arrow functions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Lorenzo <lorenzofkramer@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced May 23, 2026
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.

feat(framework): virtual server-entry module in Vite plugin

1 participant