Function: compile()¶
compile(
files,entryPath,options):Promise\<CompileResult>
Defined in: browser-compiler/src/index.ts:134
Compile PromptScript files in the browser.
This is the main entry point for browser-based compilation. It creates a virtual file system from the provided files and runs the full compilation pipeline.
Parameters¶
files¶
Map of file paths to contents
Map\<string, string> | Record\<string, string>
entryPath¶
string
Path to the entry file (e.g., "project.prs")
options¶
CompileOptions = {}
Compilation options
Returns¶
Promise\<CompileResult>
Compilation result with outputs for all formatters