npm / vite-plugin-relay
vite-plugin-relay
What changed in vite-plugin-relay 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvite-plugin-relay 23 changes
New APIs and options 1
Adds createRelayPlugin(options), which passes options through to babel-plugin-relay and supports setups where automatic Relay config discovery fails.
Fixes and other changes 2
Adds a types condition to the package root export so TypeScript can resolve types with nodenext.
A relative artifactDirectory passed to the plugin is now resolved against the Vite root rather than the process cwd.