API Reference
engine() Default Export
The default export returns a combined engine that exposes development, build, manifest, loader, and render helpers from one object.
The default export returns a combined engine that exposes development, build, manifest, loader, and render helpers from one object.
ts
import engine from 'reactus';
const app = engine({
cwd: process.cwd(),
production: false
});
Most applications do not need this entrypoint. The explicit wrappers are easier to reason about:
dev()for development renderingbuild()for build scriptsserve()for production rendering
Use the default export when you want one object with access to:
http()anddev()- build helpers such as
buildAllAssets() - loader helpers such as
fetch()andresolve() - manifest helpers such as
set()andsave() - render helpers such as
render()andrenderHMR()