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.jsonNeed 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.
| Key | Type | Description |
|---|---|---|
workers | any | |
batchIndependent | any | |
typescript | string | |
plugins | object[] | |
dependencies | object[] |
[flamework]
Enables Rotor's native Flamework transformer.
| Key | Type | Description |
|---|---|---|
after | string | Run native Flamework after this remaining TypeScript transformer. |
noSemanticDiagnostics | boolean | Disable TypeScript semantic diagnostics during Flamework transformation. |
obfuscation | boolean | Enable 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". |
hashPrefix | string | Optional identifier hash prefix; values beginning with $ are reserved. |
salt | string | Salt used for Flamework hashes. |
preloadIds | boolean | Generate identifiers for exports. |
skipUnchangedFiles | boolean | Reuse 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>]
| Key | Type | Description |
|---|---|---|
after | string | |
noSemanticDiagnostics | boolean | |
obfuscation | boolean | |
idGenerationMode | "full" | "obfuscated" | "short" | "tiny" | Default: "full". |
hashPrefix | string | |
salt | string | |
preloadIds | boolean | |
skipUnchangedFiles | boolean | Reuse the original parse tree for sources Flamework leaves unchanged instead of reprinting them (opts out of upstream source-print parity). |
[flamework.profiles.<profile>.optimizations]
| Key | Type | Description |
|---|---|---|
guardGenerationDedupLimit | integer |
[flamework.optimizations]
| Key | Type | Description |
|---|---|---|
guardGenerationDedupLimit | integer | Maximum guard-generation deduplication work. |