@nola-lang/webpack
v0.1.4
Published
webpack plugin for Nola (.tsi)
Maintainers
Readme
@nola-lang/webpack
webpack plugin for Nola .tsi modules.
// webpack.config.mjs
import nola from "@nola-lang/webpack";
export default {
target: "node22", // Nola is server-only in v0 — browser targets fail with NOLA4001
resolve: {
extensions: [".ts", ".js"],
// NodeNext convention: plain TS written for tsc says "./x.js" while only x.ts is on disk.
extensionAlias: { ".js": [".js", ".ts"] },
},
plugins: [nola()],
};nola.config.tsis auto-wired into the bundle for app targets.- For
tsc --noEmitin CI, runnola declarationsand enable"allowArbitraryExtensions": truein tsconfig.
Options (nola(options)): target ("app" | "lib"), config (path override
or false), declarations.
