rollup-plugin-stats 2.1.3 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"extract.cjs","names":["checkExcludeFilepath","omit"],"sources":["../src/extract.ts"],"sourcesContent":["import { omit } from './utils/omit';\n\nimport {\n type ExcludeFilepathPatterns,\n checkExcludeFilepath,\n} from './utils/check-exclude-filepath';\nimport type {\n OutputAsset,\n OutputBundle,\n OutputChunk,\n RenderedModule,\n} from './types';\n\nexport type AssetStatsOptionalProperties = {\n source?: OutputAsset['source'];\n};\n\nexport type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> &\n AssetStatsOptionalProperties;\n\nexport type ModuleStatsOptionalProperties = {\n code?: RenderedModule['code'] | null;\n};\n\nexport type ModuleStats = Omit<\n RenderedModule,\n keyof ModuleStatsOptionalProperties\n> &\n ModuleStatsOptionalProperties;\n\nexport type ChunkStatsOptionalProperties = {\n code?: OutputChunk['code'];\n map?: OutputChunk['map'];\n};\n\nexport type ChunkStats = Omit<\n OutputChunk,\n keyof ChunkStatsOptionalProperties | 'modules'\n> & {\n modules: Record<string, ModuleStats>;\n} & ChunkStatsOptionalProperties;\n\nexport type Stats = Record<string, AssetStats | ChunkStats>;\n\nexport type StatsOptions = {\n /**\n * Output asset/module sources\n * @default false\n */\n source?: boolean;\n /**\n * Output chunk map\n * @default false\n */\n map?: boolean;\n /**\n * Exclude matching assets\n */\n excludeAssets?: ExcludeFilepathPatterns;\n /**\n * Exclude matching modules\n */\n excludeModules?: ExcludeFilepathPatterns;\n};\n\n/**\n * Extract bundler stats\n *\n * Shallow clone stats object before any processing using `omit` to\n * 1. resolve getters\n * 2. prevent changes to the stats object\n *\n * @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128\n */\nexport default function extractRollupStats(\n bundle: OutputBundle,\n options: StatsOptions = {}\n): Stats {\n const {\n source = false,\n map = false,\n excludeAssets,\n excludeModules,\n } = options;\n\n const output: Stats = {};\n\n Object.entries(bundle).forEach(([bundleEntryFilepath, bundleEntryStats]) => {\n // Skip extraction if the entry filepath matches the exclude assets pattern\n if (checkExcludeFilepath(bundleEntryFilepath, excludeAssets)) {\n return;\n }\n\n if (bundleEntryStats.type === 'asset') {\n const assetStatsOmitKeys: Array<keyof AssetStatsOptionalProperties> = [];\n\n // Skip asset source if options.source is false\n if (!source) {\n assetStatsOmitKeys.push('source');\n }\n\n output[bundleEntryFilepath] = omit(\n bundleEntryStats,\n assetStatsOmitKeys\n ) as AssetStats;\n\n return;\n }\n\n if (bundleEntryStats.type === 'chunk') {\n const chunkStatsOmitKeys: Array<keyof ChunkStatsOptionalProperties> = [];\n\n // Skip chunk source if options.source is false\n if (!source) {\n chunkStatsOmitKeys.push('code');\n }\n\n // Skip chunk map if options.map is false\n if (!map) {\n chunkStatsOmitKeys.push('map');\n }\n\n const chunkStats = omit(\n bundleEntryStats,\n chunkStatsOmitKeys\n ) as ChunkStats;\n\n // Extract chunk modules stats\n const chunkModulesStats: ChunkStats['modules'] = {};\n\n Object.entries(chunkStats.modules).forEach(\n ([bundleModuleFilepath, bundleModuleStats]) => {\n // Skip module extraction if the filepath matches the exclude modules pattern\n if (checkExcludeFilepath(bundleModuleFilepath, excludeModules)) {\n return;\n }\n\n const moduleStatsOmitKeys: Array<\n keyof ModuleStatsOptionalProperties\n > = [];\n\n // Skip module source if options.source is false\n if (!source) {\n moduleStatsOmitKeys.push('code');\n }\n\n chunkModulesStats[bundleModuleFilepath] = omit(\n bundleModuleStats,\n moduleStatsOmitKeys\n ) as ModuleStats;\n }\n );\n\n chunkStats.modules = chunkModulesStats;\n\n output[bundleEntryFilepath] = chunkStats;\n\n return;\n }\n });\n\n return output;\n}\n"],"mappings":";;;;;;;;;;;;;AA0EA,SAAwB,mBACtB,QACA,UAAwB,CAAC,GAClB;CACP,MAAM,EACJ,SAAS,OACT,MAAM,OACN,eACA,mBACE;CAEJ,MAAM,SAAgB,CAAC;CAEvB,OAAO,QAAQ,MAAM,EAAE,SAAS,CAAC,qBAAqB,sBAAsB;EAE1E,IAAIA,oDAAqB,qBAAqB,aAAa,GACzD;EAGF,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,QAAQ;GAGlC,OAAO,uBAAuBC,kBAC5B,kBACA,kBACF;GAEA;EACF;EAEA,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,MAAM;GAIhC,IAAI,CAAC,KACH,mBAAmB,KAAK,KAAK;GAG/B,MAAM,aAAaA,kBACjB,kBACA,kBACF;GAGA,MAAM,oBAA2C,CAAC;GAElD,OAAO,QAAQ,WAAW,OAAO,EAAE,SAChC,CAAC,sBAAsB,uBAAuB;IAE7C,IAAID,oDAAqB,sBAAsB,cAAc,GAC3D;IAGF,MAAM,sBAEF,CAAC;IAGL,IAAI,CAAC,QACH,oBAAoB,KAAK,MAAM;IAGjC,kBAAkB,wBAAwBC,kBACxC,mBACA,mBACF;GACF,CACF;GAEA,WAAW,UAAU;GAErB,OAAO,uBAAuB;GAE9B;EACF;CACF,CAAC;CAED,OAAO;AACT"}
1
+ {"version":3,"file":"extract.cjs","names":["checkExcludeFilepath","omit"],"sources":["../src/extract.ts"],"sourcesContent":["import { omit } from './utils/omit';\n\nimport {\n type ExcludeFilepathPatterns,\n checkExcludeFilepath,\n} from './utils/check-exclude-filepath';\nimport type {\n OutputAsset,\n OutputBundle,\n OutputChunk,\n RenderedModule,\n} from './types';\n\nexport type AssetStatsOptionalProperties = {\n source?: OutputAsset['source'];\n};\n\nexport type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> &\n AssetStatsOptionalProperties;\n\nexport type ModuleStatsOptionalProperties = {\n code?: RenderedModule['code'] | null;\n};\n\nexport type ModuleStats = Omit<\n RenderedModule,\n keyof ModuleStatsOptionalProperties\n> &\n ModuleStatsOptionalProperties;\n\nexport type ChunkStatsOptionalProperties = {\n code?: OutputChunk['code'];\n map?: OutputChunk['map'];\n};\n\nexport type ChunkStats = Omit<\n OutputChunk,\n keyof ChunkStatsOptionalProperties | 'modules'\n> & {\n modules: Record<string, ModuleStats>;\n} & ChunkStatsOptionalProperties;\n\nexport type Stats = Record<string, AssetStats | ChunkStats>;\n\nexport type StatsOptions = {\n /**\n * Output asset/module sources\n * @default false\n */\n source?: boolean;\n /**\n * Output chunk map\n * @default false\n */\n map?: boolean;\n /**\n * Exclude matching assets\n */\n excludeAssets?: ExcludeFilepathPatterns;\n /**\n * Exclude matching modules\n */\n excludeModules?: ExcludeFilepathPatterns;\n};\n\n/**\n * Extract bundler stats\n *\n * Shallow clone stats object before any processing using `omit` to\n * 1. resolve getters\n * 2. prevent changes to the stats object\n *\n * @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128\n */\nexport default function extractRollupStats(\n bundle: OutputBundle,\n options: StatsOptions = {}\n): Stats {\n const {\n source = false,\n map = false,\n excludeAssets,\n excludeModules,\n } = options;\n\n const output: Stats = {};\n\n Object.entries(bundle).forEach(([bundleEntryFilepath, bundleEntryStats]) => {\n // Skip extraction if the entry filepath matches the exclude assets pattern\n if (checkExcludeFilepath(bundleEntryFilepath, excludeAssets)) {\n return;\n }\n\n if (bundleEntryStats.type === 'asset') {\n const assetStatsOmitKeys: Array<keyof AssetStatsOptionalProperties> = [];\n\n // Skip asset source if options.source is false\n if (!source) {\n assetStatsOmitKeys.push('source');\n }\n\n output[bundleEntryFilepath] = omit(\n bundleEntryStats,\n assetStatsOmitKeys\n ) as AssetStats;\n\n return;\n }\n\n if (bundleEntryStats.type === 'chunk') {\n const chunkStatsOmitKeys: Array<keyof ChunkStatsOptionalProperties> = [];\n\n // Skip chunk source if options.source is false\n if (!source) {\n chunkStatsOmitKeys.push('code');\n }\n\n // Skip chunk map if options.map is false\n if (!map) {\n chunkStatsOmitKeys.push('map');\n }\n\n const chunkStats = omit(\n bundleEntryStats,\n chunkStatsOmitKeys\n ) as ChunkStats;\n\n // Extract chunk modules stats\n const chunkModulesStats: ChunkStats['modules'] = {};\n\n Object.entries(chunkStats.modules).forEach(\n ([bundleModuleFilepath, bundleModuleStats]) => {\n // Skip module extraction if the filepath matches the exclude modules pattern\n if (checkExcludeFilepath(bundleModuleFilepath, excludeModules)) {\n return;\n }\n\n const moduleStatsOmitKeys: Array<\n keyof ModuleStatsOptionalProperties\n > = [];\n\n // Skip module source if options.source is false\n if (!source) {\n moduleStatsOmitKeys.push('code');\n }\n\n chunkModulesStats[bundleModuleFilepath] = omit(\n bundleModuleStats,\n moduleStatsOmitKeys\n ) as ModuleStats;\n }\n );\n\n chunkStats.modules = chunkModulesStats;\n\n output[bundleEntryFilepath] = chunkStats;\n\n return;\n }\n });\n\n return output;\n}\n"],"mappings":";;;;;;;;;;;;;AA0EA,SAAwB,mBACtB,QACA,UAAwB,CAAC,GAClB;CACP,MAAM,EACJ,SAAS,OACT,MAAM,OACN,eACA,mBACE;CAEJ,MAAM,SAAgB,CAAC;CAEvB,OAAO,QAAQ,MAAM,CAAC,CAAC,SAAS,CAAC,qBAAqB,sBAAsB;EAE1E,IAAIA,oDAAqB,qBAAqB,aAAa,GACzD;EAGF,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,QAAQ;GAGlC,OAAO,uBAAuBC,kBAC5B,kBACA,kBACF;GAEA;EACF;EAEA,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,MAAM;GAIhC,IAAI,CAAC,KACH,mBAAmB,KAAK,KAAK;GAG/B,MAAM,aAAaA,kBACjB,kBACA,kBACF;GAGA,MAAM,oBAA2C,CAAC;GAElD,OAAO,QAAQ,WAAW,OAAO,CAAC,CAAC,SAChC,CAAC,sBAAsB,uBAAuB;IAE7C,IAAID,oDAAqB,sBAAsB,cAAc,GAC3D;IAGF,MAAM,sBAEF,CAAC;IAGL,IAAI,CAAC,QACH,oBAAoB,KAAK,MAAM;IAGjC,kBAAkB,wBAAwBC,kBACxC,mBACA,mBACF;GACF,CACF;GAEA,WAAW,UAAU;GAErB,OAAO,uBAAuB;GAE9B;EACF;CACF,CAAC;CAED,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"extract.mjs","names":[],"sources":["../src/extract.ts"],"sourcesContent":["import { omit } from './utils/omit';\n\nimport {\n type ExcludeFilepathPatterns,\n checkExcludeFilepath,\n} from './utils/check-exclude-filepath';\nimport type {\n OutputAsset,\n OutputBundle,\n OutputChunk,\n RenderedModule,\n} from './types';\n\nexport type AssetStatsOptionalProperties = {\n source?: OutputAsset['source'];\n};\n\nexport type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> &\n AssetStatsOptionalProperties;\n\nexport type ModuleStatsOptionalProperties = {\n code?: RenderedModule['code'] | null;\n};\n\nexport type ModuleStats = Omit<\n RenderedModule,\n keyof ModuleStatsOptionalProperties\n> &\n ModuleStatsOptionalProperties;\n\nexport type ChunkStatsOptionalProperties = {\n code?: OutputChunk['code'];\n map?: OutputChunk['map'];\n};\n\nexport type ChunkStats = Omit<\n OutputChunk,\n keyof ChunkStatsOptionalProperties | 'modules'\n> & {\n modules: Record<string, ModuleStats>;\n} & ChunkStatsOptionalProperties;\n\nexport type Stats = Record<string, AssetStats | ChunkStats>;\n\nexport type StatsOptions = {\n /**\n * Output asset/module sources\n * @default false\n */\n source?: boolean;\n /**\n * Output chunk map\n * @default false\n */\n map?: boolean;\n /**\n * Exclude matching assets\n */\n excludeAssets?: ExcludeFilepathPatterns;\n /**\n * Exclude matching modules\n */\n excludeModules?: ExcludeFilepathPatterns;\n};\n\n/**\n * Extract bundler stats\n *\n * Shallow clone stats object before any processing using `omit` to\n * 1. resolve getters\n * 2. prevent changes to the stats object\n *\n * @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128\n */\nexport default function extractRollupStats(\n bundle: OutputBundle,\n options: StatsOptions = {}\n): Stats {\n const {\n source = false,\n map = false,\n excludeAssets,\n excludeModules,\n } = options;\n\n const output: Stats = {};\n\n Object.entries(bundle).forEach(([bundleEntryFilepath, bundleEntryStats]) => {\n // Skip extraction if the entry filepath matches the exclude assets pattern\n if (checkExcludeFilepath(bundleEntryFilepath, excludeAssets)) {\n return;\n }\n\n if (bundleEntryStats.type === 'asset') {\n const assetStatsOmitKeys: Array<keyof AssetStatsOptionalProperties> = [];\n\n // Skip asset source if options.source is false\n if (!source) {\n assetStatsOmitKeys.push('source');\n }\n\n output[bundleEntryFilepath] = omit(\n bundleEntryStats,\n assetStatsOmitKeys\n ) as AssetStats;\n\n return;\n }\n\n if (bundleEntryStats.type === 'chunk') {\n const chunkStatsOmitKeys: Array<keyof ChunkStatsOptionalProperties> = [];\n\n // Skip chunk source if options.source is false\n if (!source) {\n chunkStatsOmitKeys.push('code');\n }\n\n // Skip chunk map if options.map is false\n if (!map) {\n chunkStatsOmitKeys.push('map');\n }\n\n const chunkStats = omit(\n bundleEntryStats,\n chunkStatsOmitKeys\n ) as ChunkStats;\n\n // Extract chunk modules stats\n const chunkModulesStats: ChunkStats['modules'] = {};\n\n Object.entries(chunkStats.modules).forEach(\n ([bundleModuleFilepath, bundleModuleStats]) => {\n // Skip module extraction if the filepath matches the exclude modules pattern\n if (checkExcludeFilepath(bundleModuleFilepath, excludeModules)) {\n return;\n }\n\n const moduleStatsOmitKeys: Array<\n keyof ModuleStatsOptionalProperties\n > = [];\n\n // Skip module source if options.source is false\n if (!source) {\n moduleStatsOmitKeys.push('code');\n }\n\n chunkModulesStats[bundleModuleFilepath] = omit(\n bundleModuleStats,\n moduleStatsOmitKeys\n ) as ModuleStats;\n }\n );\n\n chunkStats.modules = chunkModulesStats;\n\n output[bundleEntryFilepath] = chunkStats;\n\n return;\n }\n });\n\n return output;\n}\n"],"mappings":";;;;;;;;;;;;;AA0EA,SAAwB,mBACtB,QACA,UAAwB,CAAC,GAClB;CACP,MAAM,EACJ,SAAS,OACT,MAAM,OACN,eACA,mBACE;CAEJ,MAAM,SAAgB,CAAC;CAEvB,OAAO,QAAQ,MAAM,EAAE,SAAS,CAAC,qBAAqB,sBAAsB;EAE1E,IAAI,qBAAqB,qBAAqB,aAAa,GACzD;EAGF,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,QAAQ;GAGlC,OAAO,uBAAuB,KAC5B,kBACA,kBACF;GAEA;EACF;EAEA,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,MAAM;GAIhC,IAAI,CAAC,KACH,mBAAmB,KAAK,KAAK;GAG/B,MAAM,aAAa,KACjB,kBACA,kBACF;GAGA,MAAM,oBAA2C,CAAC;GAElD,OAAO,QAAQ,WAAW,OAAO,EAAE,SAChC,CAAC,sBAAsB,uBAAuB;IAE7C,IAAI,qBAAqB,sBAAsB,cAAc,GAC3D;IAGF,MAAM,sBAEF,CAAC;IAGL,IAAI,CAAC,QACH,oBAAoB,KAAK,MAAM;IAGjC,kBAAkB,wBAAwB,KACxC,mBACA,mBACF;GACF,CACF;GAEA,WAAW,UAAU;GAErB,OAAO,uBAAuB;GAE9B;EACF;CACF,CAAC;CAED,OAAO;AACT"}
1
+ {"version":3,"file":"extract.mjs","names":[],"sources":["../src/extract.ts"],"sourcesContent":["import { omit } from './utils/omit';\n\nimport {\n type ExcludeFilepathPatterns,\n checkExcludeFilepath,\n} from './utils/check-exclude-filepath';\nimport type {\n OutputAsset,\n OutputBundle,\n OutputChunk,\n RenderedModule,\n} from './types';\n\nexport type AssetStatsOptionalProperties = {\n source?: OutputAsset['source'];\n};\n\nexport type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> &\n AssetStatsOptionalProperties;\n\nexport type ModuleStatsOptionalProperties = {\n code?: RenderedModule['code'] | null;\n};\n\nexport type ModuleStats = Omit<\n RenderedModule,\n keyof ModuleStatsOptionalProperties\n> &\n ModuleStatsOptionalProperties;\n\nexport type ChunkStatsOptionalProperties = {\n code?: OutputChunk['code'];\n map?: OutputChunk['map'];\n};\n\nexport type ChunkStats = Omit<\n OutputChunk,\n keyof ChunkStatsOptionalProperties | 'modules'\n> & {\n modules: Record<string, ModuleStats>;\n} & ChunkStatsOptionalProperties;\n\nexport type Stats = Record<string, AssetStats | ChunkStats>;\n\nexport type StatsOptions = {\n /**\n * Output asset/module sources\n * @default false\n */\n source?: boolean;\n /**\n * Output chunk map\n * @default false\n */\n map?: boolean;\n /**\n * Exclude matching assets\n */\n excludeAssets?: ExcludeFilepathPatterns;\n /**\n * Exclude matching modules\n */\n excludeModules?: ExcludeFilepathPatterns;\n};\n\n/**\n * Extract bundler stats\n *\n * Shallow clone stats object before any processing using `omit` to\n * 1. resolve getters\n * 2. prevent changes to the stats object\n *\n * @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128\n */\nexport default function extractRollupStats(\n bundle: OutputBundle,\n options: StatsOptions = {}\n): Stats {\n const {\n source = false,\n map = false,\n excludeAssets,\n excludeModules,\n } = options;\n\n const output: Stats = {};\n\n Object.entries(bundle).forEach(([bundleEntryFilepath, bundleEntryStats]) => {\n // Skip extraction if the entry filepath matches the exclude assets pattern\n if (checkExcludeFilepath(bundleEntryFilepath, excludeAssets)) {\n return;\n }\n\n if (bundleEntryStats.type === 'asset') {\n const assetStatsOmitKeys: Array<keyof AssetStatsOptionalProperties> = [];\n\n // Skip asset source if options.source is false\n if (!source) {\n assetStatsOmitKeys.push('source');\n }\n\n output[bundleEntryFilepath] = omit(\n bundleEntryStats,\n assetStatsOmitKeys\n ) as AssetStats;\n\n return;\n }\n\n if (bundleEntryStats.type === 'chunk') {\n const chunkStatsOmitKeys: Array<keyof ChunkStatsOptionalProperties> = [];\n\n // Skip chunk source if options.source is false\n if (!source) {\n chunkStatsOmitKeys.push('code');\n }\n\n // Skip chunk map if options.map is false\n if (!map) {\n chunkStatsOmitKeys.push('map');\n }\n\n const chunkStats = omit(\n bundleEntryStats,\n chunkStatsOmitKeys\n ) as ChunkStats;\n\n // Extract chunk modules stats\n const chunkModulesStats: ChunkStats['modules'] = {};\n\n Object.entries(chunkStats.modules).forEach(\n ([bundleModuleFilepath, bundleModuleStats]) => {\n // Skip module extraction if the filepath matches the exclude modules pattern\n if (checkExcludeFilepath(bundleModuleFilepath, excludeModules)) {\n return;\n }\n\n const moduleStatsOmitKeys: Array<\n keyof ModuleStatsOptionalProperties\n > = [];\n\n // Skip module source if options.source is false\n if (!source) {\n moduleStatsOmitKeys.push('code');\n }\n\n chunkModulesStats[bundleModuleFilepath] = omit(\n bundleModuleStats,\n moduleStatsOmitKeys\n ) as ModuleStats;\n }\n );\n\n chunkStats.modules = chunkModulesStats;\n\n output[bundleEntryFilepath] = chunkStats;\n\n return;\n }\n });\n\n return output;\n}\n"],"mappings":";;;;;;;;;;;;;AA0EA,SAAwB,mBACtB,QACA,UAAwB,CAAC,GAClB;CACP,MAAM,EACJ,SAAS,OACT,MAAM,OACN,eACA,mBACE;CAEJ,MAAM,SAAgB,CAAC;CAEvB,OAAO,QAAQ,MAAM,CAAC,CAAC,SAAS,CAAC,qBAAqB,sBAAsB;EAE1E,IAAI,qBAAqB,qBAAqB,aAAa,GACzD;EAGF,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,QAAQ;GAGlC,OAAO,uBAAuB,KAC5B,kBACA,kBACF;GAEA;EACF;EAEA,IAAI,iBAAiB,SAAS,SAAS;GACrC,MAAM,qBAAgE,CAAC;GAGvE,IAAI,CAAC,QACH,mBAAmB,KAAK,MAAM;GAIhC,IAAI,CAAC,KACH,mBAAmB,KAAK,KAAK;GAG/B,MAAM,aAAa,KACjB,kBACA,kBACF;GAGA,MAAM,oBAA2C,CAAC;GAElD,OAAO,QAAQ,WAAW,OAAO,CAAC,CAAC,SAChC,CAAC,sBAAsB,uBAAuB;IAE7C,IAAI,qBAAqB,sBAAsB,cAAc,GAC3D;IAGF,MAAM,sBAEF,CAAC;IAGL,IAAI,CAAC,QACH,oBAAoB,KAAK,MAAM;IAGjC,kBAAkB,wBAAwB,KACxC,mBACA,mBACF;GACF,CACF;GAEA,WAAW,UAAU;GAErB,OAAO,uBAAuB;GAE9B;EACF;CACF,CAAC;CAED,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"omit.cjs","names":[],"sources":["../../src/utils/omit.ts"],"sourcesContent":["export function omit<D extends object, K extends keyof D = keyof D>(\n data: D,\n keys: K[]\n): Omit<D, K> {\n const result = {} as D;\n const objectKeys = Object.keys(data) as Array<K>;\n\n objectKeys.forEach((key) => {\n if (!keys.includes(key)) {\n result[key] = data[key];\n }\n });\n\n return result;\n}\n"],"mappings":";;AAAA,SAAgB,KACd,MACA,MACY;CACZ,MAAM,SAAS,CAAC;CAGhB,AAFmB,OAAO,KAAK,IAEtB,EAAE,SAAS,QAAQ;EAC1B,IAAI,CAAC,KAAK,SAAS,GAAG,GACpB,OAAO,OAAO,KAAK;CAEvB,CAAC;CAED,OAAO;AACT"}
1
+ {"version":3,"file":"omit.cjs","names":[],"sources":["../../src/utils/omit.ts"],"sourcesContent":["export function omit<D extends object, K extends keyof D = keyof D>(\n data: D,\n keys: K[]\n): Omit<D, K> {\n const result = {} as D;\n const objectKeys = Object.keys(data) as Array<K>;\n\n objectKeys.forEach((key) => {\n if (!keys.includes(key)) {\n result[key] = data[key];\n }\n });\n\n return result;\n}\n"],"mappings":";;AAAA,SAAgB,KACd,MACA,MACY;CACZ,MAAM,SAAS,CAAC;CAGhB,AAFmB,OAAO,KAAK,IAEtB,CAAC,CAAC,SAAS,QAAQ;EAC1B,IAAI,CAAC,KAAK,SAAS,GAAG,GACpB,OAAO,OAAO,KAAK;CAEvB,CAAC;CAED,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"omit.mjs","names":[],"sources":["../../src/utils/omit.ts"],"sourcesContent":["export function omit<D extends object, K extends keyof D = keyof D>(\n data: D,\n keys: K[]\n): Omit<D, K> {\n const result = {} as D;\n const objectKeys = Object.keys(data) as Array<K>;\n\n objectKeys.forEach((key) => {\n if (!keys.includes(key)) {\n result[key] = data[key];\n }\n });\n\n return result;\n}\n"],"mappings":";AAAA,SAAgB,KACd,MACA,MACY;CACZ,MAAM,SAAS,CAAC;CAGhB,AAFmB,OAAO,KAAK,IAEtB,EAAE,SAAS,QAAQ;EAC1B,IAAI,CAAC,KAAK,SAAS,GAAG,GACpB,OAAO,OAAO,KAAK;CAEvB,CAAC;CAED,OAAO;AACT"}
1
+ {"version":3,"file":"omit.mjs","names":[],"sources":["../../src/utils/omit.ts"],"sourcesContent":["export function omit<D extends object, K extends keyof D = keyof D>(\n data: D,\n keys: K[]\n): Omit<D, K> {\n const result = {} as D;\n const objectKeys = Object.keys(data) as Array<K>;\n\n objectKeys.forEach((key) => {\n if (!keys.includes(key)) {\n result[key] = data[key];\n }\n });\n\n return result;\n}\n"],"mappings":";AAAA,SAAgB,KACd,MACA,MACY;CACZ,MAAM,SAAS,CAAC;CAGhB,AAFmB,OAAO,KAAK,IAEtB,CAAC,CAAC,SAAS,QAAQ;EAC1B,IAAI,CAAC,KAAK,SAAS,GAAG,GACpB,OAAO,OAAO,KAAK;CAEvB,CAAC;CAED,OAAO;AACT"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rollup-plugin-stats",
3
3
  "description": "Vite/Rolldown/Rollup plugin to generate bundle stats JSON file",
4
- "version": "2.1.3",
4
+ "version": "3.0.0-beta.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "repository": {
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "engines": {
57
- "node": ">=18"
57
+ "node": ">=22"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "npm run clean && npm run type-check && tsdown",
@@ -73,24 +73,24 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@eslint/js": "10.0.1",
76
- "@release-it/conventional-changelog": "11.0.0",
76
+ "@release-it/conventional-changelog": "11.0.1",
77
77
  "@types/deep-freeze-strict": "1.1.2",
78
- "@types/node": "25.9.1",
78
+ "@types/node": "26.0.0",
79
79
  "deep-freeze-strict": "1.1.1",
80
- "eslint": "10.4.0",
80
+ "eslint": "10.5.0",
81
81
  "eslint-config-prettier": "10.1.8",
82
82
  "globals": "17.6.0",
83
83
  "husky": "9.1.7",
84
- "lint-staged": "17.0.5",
85
- "memfs": "4.57.2",
86
- "prettier": "3.8.3",
87
- "release-it": "20.0.1",
84
+ "lint-staged": "17.0.7",
85
+ "memfs": "4.57.7",
86
+ "prettier": "3.8.4",
87
+ "release-it": "20.2.0",
88
88
  "rimraf": "6.1.3",
89
- "tsdown": "0.22.1",
89
+ "tsdown": "0.22.3",
90
90
  "typescript": "6.0.3",
91
- "typescript-eslint": "8.60.0",
92
- "vite": "7.3.2",
93
- "vitest": "4.1.7"
91
+ "typescript-eslint": "8.61.1",
92
+ "vite": "8.0.16",
93
+ "vitest": "4.1.9"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "rolldown": "^1.0.0-beta.0",