nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
360 stars 23 forks source link

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

Closed danielroe closed 3 months ago

danielroe commented 3 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.