# Function: setupPixivnViteData() (/jsdoc/pixi-vn/vite-listener/functions/setupPixivnViteData)



\> **setupPixivnViteData**(): `Promise`\<`void`>

Defined in: [src/vite-listener/plugins.ts:86](https://github.com/DRincs-Productions/pixi-vn/blob/4b8909bd13b1cc1fa7efb0238c44a5af3767e61f/src/vite-listener/plugins.ts#L86)

Initializes Pixi VN development tools by syncing game state with the Vite dev server.
Sends assets manifest and canvas options.

**Note:** This function only operates in Vite development mode and is a no-op in production.

**Call this function:** After RegisteredCharacters and RegisteredLabels are populated,
typically in your client-side initialization code.

## Returns [#returns]

`Promise`\<`void`>

## Example [#example]

```ts
// In your main game initialization file
import { setupPixivnViteData } from '@drincs/pixi-vn/vite-listener';

await Promise.all([import("@/content")]);
// After game setup
await setupPixivnViteData();
```
