nuxt / scripts

Plug-and-play script optimization for Nuxt applications. (Public Preview)
https://scripts.nuxt.com
MIT License
138 stars 9 forks source link

compatibility with nuxt #12

Closed huang-julien closed 2 months ago

huang-julien commented 2 months ago

image

Currently the module is set to be compatible with nuxt >= 3.11.1 . I think there's probably no reason to block it except probably issues with @unhead/vue versions which can probably solved with peerDeps.

Should we increase compatibility with other nuxt versions ? Otherwise module authors will have to handle Nuxt 2, Nuxt < 3.11.1 and Nuxt >= 3.11.1 in their modules.

harlan-zw commented 2 months ago

Hey, thanks for raising this.

This relates to maintenance costs, I'd only be looking to release Nuxt Scripts with compatibility for the latest Nuxt version (as of public release).

This also will filter the number of people initially using the package so we can get it stable with less noise and avoid getting unrelated issues popping up.

harlan-zw commented 2 months ago

Ah I realised now that this relates to supporting other modules integrating with Nuxt Scripts. In this instance I think it's safe to support older versions, we can check the Unhead version as part of the Nuxt Scripts boot.