Class: BrowserResolver¶
Defined in: browser-compiler/src/resolver.ts:76
Browser-compatible resolver for PromptScript files with inheritance and import support.
This resolver uses an in-memory virtual file system instead of Node.js fs.
Constructors¶
Constructor¶
new BrowserResolver(
options):BrowserResolver
Defined in: browser-compiler/src/resolver.ts:84
Parameters¶
options¶
Returns¶
BrowserResolver
Methods¶
clearCache()¶
clearCache():
void
Defined in: browser-compiler/src/resolver.ts:397
Clear the resolution cache.
Returns¶
void
resolve()¶
resolve(
entryPath):Promise\<ResolvedAST>
Defined in: browser-compiler/src/resolver.ts:99
Resolve a PromptScript file and all its dependencies.
Parameters¶
entryPath¶
string
Path to the entry file
Returns¶
Promise\<ResolvedAST>
Resolved AST with sources and errors