Skip to content

rotor.toml

rotor.toml at the project root holds the optional rotor settings. It sets the //!native type-annotation opt-in with nativeTypes. It also sets the experimental Luau opt-in with luauTypes, native Flamework, and parallel external transformers. Add a schema directive for editor validation and completion:

#:schema https://raw.githubusercontent.com/howmanyslop/sloptor/main/rotor.schema.json

Need the schema offline? sloptor schema > rotor.schema.json.

The site build generates this page from rotor.schema.json. A <name> segment is a table you name yourself, such as [flamework.profiles.production].

[parallelTransformers]

Experimental project-owned batch-independence attestation for two transformer workers in a one-shot CLI build, including --build. One split may be outstanding per CLI invocation. Missing, mismatched or unsupported attestations use serial execution.

KeyTypeDescription
workersany
batchIndependentany
typescriptstring
pluginsobject[]
dependenciesobject[]

[flamework]

Enables Rotor's native Flamework transformer.

KeyTypeDescription
afterstringRun native Flamework after this remaining TypeScript transformer.
noSemanticDiagnosticsbooleanDisable TypeScript semantic diagnostics during Flamework transformation.
obfuscationbooleanEnable Flamework identifier and event-name obfuscation.
idGenerationMode"full" | "obfuscated" | "short" | "tiny"Identifier generation mode. Defaults to full, or obfuscated when obfuscation is enabled. Default: "full".
hashPrefixstringOptional identifier hash prefix; values beginning with $ are reserved.
saltstringSalt used for Flamework hashes.
preloadIdsbooleanGenerate identifiers for exports.
skipUnchangedFilesbooleanReuse the original parse tree for sources Flamework leaves unchanged instead of reprinting them (opts out of upstream source-print parity).

[flamework.profiles]

Per-tsconfig native Flamework settings, keyed by normalized path relative to rotor.toml.

[flamework.profiles.<profile>]

KeyTypeDescription
afterstring
noSemanticDiagnosticsboolean
obfuscationboolean
idGenerationMode"full" | "obfuscated" | "short" | "tiny" Default: "full".
hashPrefixstring
saltstring
preloadIdsboolean
skipUnchangedFilesbooleanReuse the original parse tree for sources Flamework leaves unchanged instead of reprinting them (opts out of upstream source-print parity).

[flamework.profiles.<profile>.optimizations]

KeyTypeDescription
guardGenerationDedupLimitinteger

[flamework.optimizations]

KeyTypeDescription
guardGenerationDedupLimitintegerMaximum guard-generation deduplication work.