Skip to content

AppBuildOptions

This content is not available in your language yet.

Defined in: core/index.ts:1714

Options for building a Vite-style browser application from an HTML entry.

optional base?: string

Defined in: core/index.ts:1724

Base URL prefix used when rewriting HTML and emitted asset URLs.


optional compiler?: CompilerOptions

Defined in: core/index.ts:1752

Per-library 1st-party transform (@next/swc compiler-compatible surface). Same meaning as in BuildOptions — both bundle / app builds use the same option representation.


optional define?: Record<string, string>

Defined in: core/index.ts:1732

Additional compile-time defines merged into the underlying bundle build.


optional entryHtml?: string

Defined in: core/index.ts:1720

HTML entry file to scan for module scripts, stylesheets, and static assets.


optional envDir?: string

Defined in: core/index.ts:1728

Directory to load .env files from. Defaults to the application root.


optional envPrefixes?: string[]

Defined in: core/index.ts:1730

Environment variable prefixes that are exposed to import.meta.env.


optional jsx?: "classic" | "automatic" | "automatic-dev" | "preserve"

Defined in: core/index.ts:1740

JSX runtime: “automatic” / “automatic-dev” / “classic” / “preserve”.


optional jsxFactory?: string

Defined in: core/index.ts:1744

Classic-runtime JSX factory (e.g. “React.createElement”, “h”).


optional jsxFragment?: string

Defined in: core/index.ts:1746

Classic-runtime JSX fragment (e.g. “React.Fragment”).


optional jsxImportSource?: string

Defined in: core/index.ts:1742

JSX import source for the automatic runtime (e.g. “react”, “@emotion/react”).


optional minify?: boolean

Defined in: core/index.ts:1734

Minify emitted JavaScript and CSS when supported by the underlying builder.


optional mode?: string

Defined in: core/index.ts:1726

Environment mode used for .env resolution and import.meta.env defaults.


optional outdir?: string

Defined in: core/index.ts:1718

Output directory for the production app build. Defaults to “dist”.


optional plugins?: ZntcPlugin[]

Defined in: core/index.ts:1758

Rollup-compatible JS plugins. Same resolveId/load/transform hooks as BuildOptions.plugins — app build pipeline 도 같은 dispatcher 를 받는다 (#2538 4-4 PR-1).


optional publicDir?: string | false

Defined in: core/index.ts:1722

Public assets directory to copy as-is, or false to disable public asset copying.


optional root?: string

Defined in: core/index.ts:1716

Application root directory used to resolve index.html, public/, and env files.


optional sourcemap?: boolean

Defined in: core/index.ts:1736

Emit sourcemaps for bundled application assets.


optional splitting?: boolean

Defined in: core/index.ts:1738

Enable code splitting for the application bundle.