mirror of
https://github.com/MioMioOS/MioIsland
synced 2026-04-21 21:47:47 +00:00
Replace with native .bundle plugin architecture in next commits. Old declarative system (themes/buddy/sound JSON) removed entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
756 B
TypeScript
40 lines
756 B
TypeScript
type Rules = { "only-export-components": any };
|
|
|
|
export type OnlyExportComponentsOptions = {
|
|
extraHOCs?: string[];
|
|
allowExportNames?: string[];
|
|
allowConstantExport?: boolean;
|
|
checkJS?: boolean;
|
|
};
|
|
|
|
type Config = {
|
|
name: string;
|
|
plugins: { "react-refresh": { rules: Rules } };
|
|
rules: Rules;
|
|
};
|
|
type ConfigFn = (options?: OnlyExportComponentsOptions) => {
|
|
name: string;
|
|
plugins: { "react-refresh": { rules: Rules } };
|
|
rules: Rules;
|
|
};
|
|
|
|
export const reactRefresh: {
|
|
plugin: {
|
|
rules: Rules;
|
|
};
|
|
configs: {
|
|
recommended: ConfigFn;
|
|
vite: ConfigFn;
|
|
next: ConfigFn;
|
|
};
|
|
};
|
|
|
|
declare const _default: {
|
|
rules: Rules;
|
|
configs: {
|
|
recommended: Config;
|
|
vite: Config;
|
|
next: Config;
|
|
};
|
|
};
|
|
export default _default;
|