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>
27 lines
952 B
TypeScript
27 lines
952 B
TypeScript
import "./src/browser_polyfills";
|
|
export * from "./src/api";
|
|
export * from "./src/AsyncHook";
|
|
export * from "./src/SyncHook";
|
|
export * from "./src/config";
|
|
export * from "./src/data";
|
|
export * from "./src/errors";
|
|
export * from "./src/export";
|
|
export * from "./src/factorio/exchange_string";
|
|
export * from "./src/helpers";
|
|
export * from "./src/ini";
|
|
export * from "./src/link";
|
|
export * from "./src/lua_tools";
|
|
export * from "./src/logging";
|
|
export * from "./src/permissions";
|
|
export * from "./src/PluginLoader";
|
|
export * from "./src/schema";
|
|
export * from "./src/subscriptions";
|
|
|
|
export { default as ExponentialBackoff } from "./src/ExponentialBackoff";
|
|
export { default as RateLimiter } from "./src/RateLimiter";
|
|
export { default as ValueCache } from "./src/ValueCache";
|
|
export { default as isDeepStrictEqual } from "#is_deep_strict_equal";
|
|
|
|
import { checkSingletonImport } from "./src/check_singleton_import";
|
|
checkSingletonImport(import.meta.url);
|