Skip to content

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Feb 4, 2025

Description

built on top of #19178

Adds support for restarting the server when the dependency of the config file is edited.

I haven't wrote the tests yet.

Comment on lines +1792 to +1794
// rather than a singleton, it would be better to unregister the loader
// so that it doesn't incur the overhead when not needed
// but unregistering a loader is not supported
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my only concern is the lack of the loader unregister feature.

@bluwy
Copy link
Member

bluwy commented Feb 5, 2025

One of the main concern for me about this is that this only works in node as the API isn't implemented in Bun or Deno iirc, and it's still experimental. In the past, I also thought about using tsx's tsImport within Vite, but the limitation held me back.

But maybe it's still worth including this for now though as the config loading feature is also experimental.

@patak-dev patak-dev deleted the branch vitejs:config-loader-native February 5, 2025 09:38
@patak-dev patak-dev closed this Feb 5, 2025
@patak-dev
Copy link
Member

@sapphi-red this was autoclosed. And it seems I can't reopen it.

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.

3 participants