@nola-lang/vite
v0.1.4
Published
Vite plugin for Nola (.tsi)
Readme
@nola-lang/vite
Vite plugin for Nola .tsi modules.
// vite.config.ts
import { defineConfig } from "vite";
import nola from "@nola-lang/vite";
export default defineConfig({
plugins: [nola()],
});Nola execution is server-only in v0: .tsi transforms for SSR environments
(vite build --ssr, SSR dev). A client bundle importing .tsi fails the build
with NOLA4001 — move the import behind a server boundary.
nola.config.tsis auto-wired into the bundle for app targets (the config graph is bundled by Vite itself, so config edits hot-reload).- For
tsc --noEmitin CI, runnola declarationsand enable"allowArbitraryExtensions": truein tsconfig so plain tsc resolves.tsiimports through the generated*.d.tsi.tsfiles.
Options (nola(options)): target ("app" | "lib"), config (path override
or false to disable wiring), declarations (emit d.tsi.ts during the build,
scoped to the project root of the .tsi files being bundled).
