nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.81k stars 154 forks source link

fix: adopt forward-compatible approach to `builder:watch` #637

Closed danielroe closed 3 months ago

danielroe commented 4 months ago

We are planning to move to emitting absolute paths in builder:watch in Nuxt v4. You can see a little more about the history in the PR linked in that issue.

This PR is an attempt to use a forward/backward compatible approach, namely resolving the path to ensure it's absolute, then making it relative so your existing code will continue to work.

This should be safe to merge as is, but do let me know if you have any concerns about this approach.

cloudflare-pages[bot] commented 4 months ago

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5c2262a
Status: ✅  Deploy successful!
Preview URL: https://679f1758.nuxt-devtools.pages.dev
Branch Preview URL: https://absolute-builder-watch-paths.nuxt-devtools.pages.dev

View logs