Skip to content

No HMR in weird symlink scenario #284

Closed
@legecha

Description

@legecha

Vite Plugin Version

1.0.1

Laravel Version

10.44.0

Node Version

21.6.2

NPM Version

10.2.4

Operating System

Linux

OS Version

Ubuntu 20.04.6

Web browser and version

Safari Version 17.3 (19617.2.4.11.8)

Running in Sail?

No

Description

Certain symlinks break hmr file changes from being recognised. So far, I have only noticed pint.json but I presume it's other similar type config that Vite might recognise?

The weird thing here is that if I explicitly pass to the refresh option the refreshPaths array instead of true, but I remove "resources/lang/**" from that list, it works again.

Another possibly relevant point is that if I start npm run dev with a valid configuration/set of file then change them while it's running, the hmr file changes are still detected, so must be something at initial run.

FYI, the reason we had a pint.json symlink in the first place was to share Pint configuration across multiple projects.

Steps To Reproduce

https://github.com/legecha/vite-plugin-bug-report

See commits for examples of working and non-working states.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions