v0.9
[ playground ]

Playground

Write wowlua and see the Lua it compiles to, in every flavor and optimization setting. The playground needs the compiler in the browser, and wowlua does not build to WebAssembly yet, so it is not here yet.

install wowluawowlua on GitHub ↗
src/main.wowluawowlua · a taste, from the README
import addon, build from "wowlua:meta"import event from "wowlua:events"import log from "wowlua:log" export class Counter    private count: number = 0     @profile    function increment(by: number = 1): number        self.count += by        return self.count    endend local counter = Counter.new() @event("PLAYER_LOGIN")local function onLogin()    log.info(`{addon.title} {addon.version} loaded ({build.profile} build)`)    if build.debug then        counter:increment()    endend