Skip to content

ollin

ollin(options?): object

Vite plugin that compiles .ollin directive files: import { game, assets } from './game.ollin' creates the game and loads every declared asset. It checks that each file exists (with the line of the directive when it does not) and writes game.ollin.d.ts next to the file so editors and tsc know the types of assets. plugins: [ollin()] in vite.config.ts. The directive grammar may still grow and change after beta.

OllinPluginOptions

object

enforce: "pre"

name: string

configResolved(config): void

string

string

void

transform(this, source, id): { code: string; map: null; } | undefined

TransformContext

string

string

{ code: string; map: null; } | undefined