Skip to content

Watch files imported by the config on Node.js for --configLoader native #21655

@hgl

Description

@hgl

Description

I put my website config at ./site.config.ts, and i import it and use it in vite.config.ts. Currently nothing happens if I change ./site.config.ts.

Suggested solution

Automatically restart vite devserver and reload vite.config.ts. I tried vite-plugin-restart and the new value from ./site.config.ts is not applied, seems restarting the dev server via the plugin API doesn't reload vite.config.ts.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions