// src/rules/upload-data.ts
import { defineRule } from '@rsdoctor/core/rules';
export const UploadData = defineRule(() => ({
meta: {
category: 'bundle',
severity: 'Warn',
title: 'upload-data',
defaultConfig: {
limit: 10,
},
},
check({ chunkGraph, moduleGraph, ruleConfig }) {
// upload some data
Upload({ chunkGraph, moduleGraph });
},
}));