# scan

function in `@dioramajs/diorama/vite`

```ts
import { scan } from '@dioramajs/diorama/vite'
```

The folder's effects, one per code file (not `*.d.ts`, not `_private`) and per fragment shader
without a code file of the same name. Sorted by name. Bad or repeated names are skipped.

```ts
function scan(
  dir: string,
  shaders: boolean,
): { found: Found[]; skipped: string[] }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `dir` | `string` |  |
| `shaders` | `boolean` |  |

Defined in [packages/diorama/src/vite.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/diorama/src/vite.ts#L71).
