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

Respect HMR options from Vite config #135

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Conversation

szymmis
Copy link
Owner

@szymmis szymmis commented Jun 8, 2024

Solves #122.

Basically, what this PR does it adds support for respecting hmr options from Vite. Before vite-express set hmr to the server object and it ignored any custom options that user provided. Right now when there is custom hmr setting vite-express just passes it down the line. This is usefull when you want to have for example a WS server listening on port 3000 and you need to tell Vite to listen on port 3001 instead.

@szymmis szymmis linked an issue Jun 8, 2024 that may be closed by this pull request
@szymmis szymmis merged commit 59b514d into master Jun 8, 2024
1 check passed
@szymmis szymmis deleted the feature/custom-hmr-options branch June 8, 2024 08:30
@szymmis
Copy link
Owner Author

szymmis commented Jun 8, 2024

Version 0.17.0 is now live with this change.

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.

HMR doesn't work when changed in config
1 participant