# What changed in vite-plugin-relay

> 3 changes in vite-plugin-relay 2 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/vite-plugin-relay/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## vite-plugin-relay 2

### New APIs and options

- Adds createRelayPlugin(options), which passes options through to babel-plugin-relay and supports setups where automatic Relay config discovery fails. (2.2.0) — [release notes](https://github.com/oscartbeaumont/vite-plugin-relay/releases/tag/2.2.0)

### Fixes and other changes

- Adds a types condition to the package root export so TypeScript can resolve types with nodenext. (2.2.1) — [release notes](https://github.com/oscartbeaumont/vite-plugin-relay/releases/tag/2.2.1)
- A relative artifactDirectory passed to the plugin is now resolved against the Vite root rather than the process cwd. (2.2.0) — [release notes](https://github.com/oscartbeaumont/vite-plugin-relay/releases/tag/2.2.0)
