---
meta:
 - name: keywords
   description: api typescript node.js documentation ViteService class
---
# ViteService - @tsed/vike

## Usage

```typescript
import { ViteService } from "@tsed/vike";
```

> See [/packages/third-parties/vike/src/services/ViteService.ts](https://github.com/tsedio/tsed/blob/v8.28.2/packages/third-parties/vike/src/services/ViteService.ts#L0-L0).

## Overview

```ts
class ViteService {
    static moduleName: string;
    protected config: ViteConfig;
    render(viewPath: string, { $ctx, ...opts }: {
        $ctx: PlatformContext;
    } & Record<string, any>): Promise<string | {
        pipe(stream: Writable): void;
    } | undefined>;
}
```

<!-- Members -->

## static moduleName

```ts
static moduleName: string;
```

## protected config

```ts
protected config: ViteConfig;
```

## render

```ts
render(viewPath: string, { $ctx, ...opts }: {
     $ctx: PlatformContext;
 } & Record<string, any>): Promise<string | {
     pipe(stream: Writable): void;
 } | undefined>;
```
