Options
Options =
object
Defined in: .work/repos/tabscript/src/tabscript.ts:25
Configuration options for the TabScript transpiler.
Properties
Section titled “Properties”debug?
Section titled “debug?”
optionaldebug?:boolean| ((…args) =>void)
Defined in: .work/repos/tabscript/src/tabscript.ts:27
When true, logs each consumed token. If a function, calls that function instead of console.debug.
recover?
Section titled “recover?”
optionalrecover?:boolean
Defined in: .work/repos/tabscript/src/tabscript.ts:29
When true, attempts to recover from errors and continue transpilation instead of throwing.
optionaljs?:boolean
Defined in: .work/repos/tabscript/src/tabscript.ts:31
When true, outputs JavaScript instead of TypeScript by stripping type annotations.
transformImport?
Section titled “transformImport?”
optionaltransformImport?: (uri) =>string
Defined in: .work/repos/tabscript/src/tabscript.ts:33
Function to transform import URIs during transpilation.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
whitespace?
Section titled “whitespace?”
optionalwhitespace?:"preserve"|"pretty"
Defined in: .work/repos/tabscript/src/tabscript.ts:35
Output formatting mode: "preserve" maintains input alignment, "pretty" adds readable indentation.
loadPlugin?
Section titled “loadPlugin?”
optionalloadPlugin?: (path) =>PluginModule
Defined in: .work/repos/tabscript/src/tabscript.ts:37
Function to load a plugin module synchronously from a path. Required for plugin imports.
Parameters
Section titled “Parameters”string