Skip to content

Default @refresh pragma #16

@edemaine

Description

@edemaine

Could we add an option (here and the solid-vite-plugin that includes this) to specify the default @refresh pragma, for files that don't override @refresh? And I guess we'd need to give a name to the current default behavior, so you could opt back into it. Maybe /* @refresh replace */?

Motivation: The more I experience HMR (e.g. changing solid-playground), the more I find it buggy for the types of changes I make; for certain types of testing/debugging, I really want the full page reload every time. I basically don't trust the HMR results and manually reload every time. So I'd like to be able to specify a default of /* @refresh reload */.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions