glob()
doesn't seem to reload changed files in Linux system
#12792
Labels
needs triage
Issue needs to be triaged
Astro Info
If this issue only occurs in one browser, which browser is a problem?
none
Describe the Bug
The story is I try to write a loader base on the latest version Astro 5. I use
glob()
loader as a model to study. During the work, I found out that the watcher will always ignore the change for my loader. After a while, I found out that themicromatch.isMatch
inglob.js
seems to always returnfalse
even the path supposes to be matched the pattern. (and my code copy the same so it got ignore)From
console.log(process.versions)
:What's the expected result?
If I have a pattern
recipes/*.toml
and an incoming pathrecipes/001.toml
, the incoming path should be accepted not ignored.I have a fix for my loader and I think it can be applied for the
glob()
as well. So can you guy confirm if this is not your intention and need a fix, I can help with that.Link to Minimal Reproducible Example
https://gitlab.com/ndt-deps/astro-pkg/-/blob/6a5339a304959a90a7359bcb5d601390b156a1cc/demo/src/content.config.ts
Participation
The text was updated successfully, but these errors were encountered: