-
-
Notifications
You must be signed in to change notification settings - Fork 3k
refactor(dev): use entry point to bootstrap the app #14333
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
Conversation
|
| const { handler } = await createExports.default(settings, controller, loader); | ||
|
|
||
| /** rebuild the route cache + manifest */ | ||
| async function rebuildManifest(path: string | null = null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the routes still get updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we have the code I just deleted in the vite plugin. And I tested it before opening the PR
|
|
||
| return { | ||
| handler(incomingRequest: http.IncomingMessage, incomingResponse: http.ServerResponse) { | ||
| app.handleRequest({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this return?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The code we removed doesn't return anything. We keep the same logic
Changes
This refactors the dev server to use an entrypoint to load the application.
Testing
The minimal example works, the react example works.
Docs