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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”object
enforce
Section titled “enforce”enforce:
"pre"
name:
string
configResolved()
Section titled “configResolved()”configResolved(
config):void
Parameters
Section titled “Parameters”config
Section titled “config”command
Section titled “command”string
publicDir
Section titled “publicDir”string
Returns
Section titled “Returns”void
transform()
Section titled “transform()”transform(
this,source,id): {code:string;map:null; } |undefined
Parameters
Section titled “Parameters”TransformContext
source
Section titled “source”string
string
Returns
Section titled “Returns”{ code: string; map: null; } | undefined
