import { PluginInstanceInternal } from "@lib/addons/plugins/types"; interface CorePlugin { default: PluginInstanceInternal; preenabled: boolean; } // Called from @lib/plugins export const getCorePlugins = (): Record => ({ "bunny.quickinstall": { ...require("./quickinstall"), preenabled: true }, "bunny.badges": require("./badges"), "bunny.notrack": require("./notrack"), "bunny.messagefix": require("./messagefix"), "bunny.fixembed": require("./fixembed"), "bunny.enhancements": require("./shiggyenhancements") }); /** * @internal */ export function defineCorePlugin( instance: PluginInstanceInternal, ): PluginInstanceInternal { // @ts-expect-error instance[Symbol.for("bunny.core.plugin")] = true; return instance; }