Pre-compile Message validator

Use a script to pre-compile the validator for the Message class to
reduce the loading time for ctl by about 40ms.
This commit is contained in:
Hornwitser committed 2023-07-30 01:54:59 +02:00
1 parent ae542e9501
commit 5eb91be6fb
5 files changed
+36 -2

No files matched your search

+4
View File
@@ -4,6 +4,10 @@
"version": "2.0.0-alpha.13",
"repository": "https://github.com/clusterio/clusterio",
"license": "MIT",
"scripts": {
"prepare": "pnpm run compile_validator",
"compile_validator": "node scripts/compile_validator.js"
},
"browser": "browser.js",
"keywords": [
"factorio"