fix(nuxt): test watch paths against all layer srcDirs#22307
fix(nuxt): test watch paths against all layer srcDirs#22307
watch paths against all layer srcDirs#22307Conversation
|
|
|
So the problem is the watch is merged when using local layers, but the merge is using the relative path from project If we use the watch from the layers previous problem is solved, since the path will be relative to the layer |
|
On investigation, the change to absolute paths was a regression, now fixed in #22333. I think that means we should normalise watched paths to absolute in schema (as you're doing), and then re-normalise them to absolute and compare them against absolute path in I think we shouldn't need to do this per layer, but directly using Would you be able to update the PR, or would you prefer me do it? |
I'll try... |
watch paths against all layer srcDirs
🔗 Linked issue
closes #22272
❓ Type of change
📚 Description
watchoption will be matched against the file path relative to the projectsrcDir, this PR normalize thepathreceived inbuilder:watchto be relative to projectsrcDirchecking also against the normalized path.📝 Checklist