Skip to content

vite-plugin-ruby 5.2.2 triggers deprecation warning under vite 8.1.5 #614

Description

@jrochkind
$ ./bin/vite dev
Trace: `server.hmr.protocol/host/port/path/clientPort/timeout/server` is deprecated. Use `server.ws.*` instead. Note that this option may be set by a plugin.

Triggered by:

const hmr = userConfig.server?.hmr ?? {}
if (typeof hmr === 'object' && !hmr.hasOwnProperty('clientPort')) {
hmr.clientPort ||= port
server.hmr = hmr
}

And possibly subsequent code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: pending triageSomething doesn't seem to be working, but hasn't been verified

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions