The plugin function doesn't have an explicit return type. This is causing type errors in new versions of vite after a type change to [envDir](https://github.com/vitejs/vite/pull/19503). <img width="792" alt="Image" src="https://github.com/user-attachments/assets/dd7cda5e-75d0-433d-ae29-2559fa92080d" /> ### Fix Explicitly add a return type of `Plugin[]` to [styleXVitePlugin](https://github.com/HorusGoul/vite-plugin-stylex/blob/8583330/packages/vite-plugin-stylex/src/main.mts#L82-L88)
The plugin function doesn't have an explicit return type. This is causing type errors in new versions of vite after a type change to envDir.
Fix
Explicitly add a return type of
Plugin[]to styleXVitePlugin