mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
PluginLoader.load takes the plugin type, context, export name and base class as options and is used by the controller, host, instance, ctl, web interface and migrations. Module imports go through #plugin_module so the node variant stays out of the web bundle. loadPlugin.ts and the loading half of plugin_loader.ts are merged into it. The loader lives for one load. Plugins reach it through context.plugins, with waitFor(name, timeoutMs) and checkInstalled(name), replacing the waitForPlugin methods. Waiting on a plugin that is not in the load list or failed to load settles right away, as loading can't finish while the waiting entrypoint is still running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
996 B
JSON
44 lines
996 B
JSON
{
|
|
"extends": "../../tsconfig.browser.json",
|
|
"include": [
|
|
"browser.ts",
|
|
"package.json",
|
|
"./src/api.ts",
|
|
"./src/AsyncHook.ts",
|
|
"./src/SyncHook.ts",
|
|
"./src/config/*.ts",
|
|
"./src/data/*.ts",
|
|
"./src/external/*.ts",
|
|
"./src/browser_polyfills.ts",
|
|
"./src/check_singleton_import.ts",
|
|
"./src/datastore.ts",
|
|
"./src/errors.ts",
|
|
"./src/export.ts",
|
|
"./src/factorio/exchange_string.ts",
|
|
"./src/helpers.ts",
|
|
"./src/hash.ts",
|
|
"./src/ini.ts",
|
|
"./src/is_deep_strict_equal.browser.ts",
|
|
"./src/zlib_sync.browser.ts",
|
|
"./src/link/*.ts",
|
|
"./src/lua_tools.ts",
|
|
"./src/logging.ts",
|
|
"./src/permissions.ts",
|
|
"./src/prometheus.ts",
|
|
"./src/PluginLoader.ts",
|
|
"./src/plugin_module.browser.ts",
|
|
"./src/plugin.ts",
|
|
"./src/schema.ts",
|
|
"./src/subscriptions.ts",
|
|
"./src/zip_ops.ts",
|
|
"./src/file_ops.ts",
|
|
"./src/ExponentialBackoff.ts",
|
|
"./src/RateLimiter.ts",
|
|
"./src/TypedEventEmitter.ts",
|
|
"./src/ValueCache.ts",
|
|
],
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
}
|
|
}
|