General: adds general.preload.lua option

This commit is contained in:
Carter Li
2026-09-24 15:55:23 +08:00
parent fb5622215b
commit 42e4fe3085
3 changed files with 49 additions and 0 deletions
+11
View File
@@ -937,6 +937,17 @@
"type": "boolean",
"description": "Whether to detect and display component versions. Mainly for benchmarking",
"default": true
},
"preload": {
"description": "Scripts to run while the config is read, before any module runs",
"type": "object",
"additionalProperties": false,
"properties": {
"lua": {
"type": "string",
"description": "Lua script to run once, as soon as the config is read, for example `dofile('/path/to/helpers.lua')`"
}
}
}
}
},