# @dioramajs/diorama/vite

Vite plugin that turns the effects folder into a lazy registry with types.

## Functions and values

- [braces](/docs/api/diorama-vite/braces.md): Lines of a braced block. An empty one is `{}` on the opening line, as Biome and Prettier print it, so formatting a generated file for an empty folder leaves it as written.
- [CODE](/docs/api/diorama-vite/code.md): Extensions of effect modules in the folder.
- [declarations](/docs/api/diorama-vite/declarations.md): Types that check effect names in `attach('.x', 'name')` and `data-dio`.
- [diorama](/docs/api/diorama-vite/diorama.md): Vite plugin, `plugins: [diorama()]`.
- [effectName](/docs/api/diorama-vite/effect-name.md): `HeroGlow` and `hero_glow` both become `hero-glow`.
- [key](/docs/api/diorama-vite/key.md): An object key, bare when possible.
- [quote](/docs/api/diorama-vite/quote.md): A single-quoted string literal, in the generated files' style.
- [registry](/docs/api/diorama-vite/registry.md): Lazy imports with what is known before load. Shaders through @dioramajs/glsl's `?effect`.
- [scan](/docs/api/diorama-vite/scan.md): 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.
- [SHADER](/docs/api/diorama-vite/shader.md): Extension of a fragment shader effect.
- [shaderType](/docs/api/diorama-vite/shader-type.md): A shader's effect type, from the params of its bindings.

## Types

- [DioramaPluginOptions](/docs/api/diorama-vite/types/diorama-plugin-options.md): Options of the build plugins.
- [Found](/docs/api/diorama-vite/types/found.md): An effect file found in the folder.
