BrowserCompilerOptions
Defined in: browser-compiler/src/compiler.ts:66
Options for the browser compiler.
Properties
cache?
optionalcache?:boolean
Defined in: browser-compiler/src/compiler.ts:80
Whether to cache resolved ASTs. Defaults to true.
customConventions?
optionalcustomConventions?:Record<string,OutputConvention>
Defined in: browser-compiler/src/compiler.ts:74
Custom convention definitions
envVars?
optionalenvVars?:Record<string,string>
Defined in: browser-compiler/src/compiler.ts:88
Simulated environment variables for interpolation. When provided, ${VAR} and ${VAR:-default} syntax in source files will be replaced with values from this map.
formatters?
optionalformatters?: (string|Formatter| {config?:TargetConfig;name:string; })[]
Defined in: browser-compiler/src/compiler.ts:72
Formatters to use (names, instances, or configs)
fs
Defined in: browser-compiler/src/compiler.ts:68
Virtual file system containing all files
logger?
optionallogger?:Logger
Defined in: browser-compiler/src/compiler.ts:78
Logger for verbose/debug output
prettier?
optionalprettier?:PrettierMarkdownOptions
Defined in: browser-compiler/src/compiler.ts:76
Prettier formatting options for markdown output
projectRoot?
optionalprojectRoot?:string
Defined in: browser-compiler/src/compiler.ts:82
Virtual project root containing .promptscript/scripts.
validator?
optionalvalidator?:ValidatorConfig
Defined in: browser-compiler/src/compiler.ts:70
Validator configuration