rollup-plugin-webpack-stats
Advanced tools
Comparing version 1.2.4-beta.6 to 2.0.0-beta.0
import { Plugin, OutputOptions } from 'rollup'; | ||
import { type StatsOptions } from 'rollup-plugin-stats/extract'; | ||
import type { BundleTransformOptions } from './transform'; | ||
interface WebpackStatsOptions extends BundleTransformOptions { | ||
type WebpackStatsOptions = { | ||
/** | ||
@@ -9,5 +10,5 @@ * JSON file output fileName | ||
fileName?: string; | ||
} | ||
} & Omit<StatsOptions, "source"> & BundleTransformOptions; | ||
type WebpackStatsOptionsOrBuilder = WebpackStatsOptions | ((outputOptions: OutputOptions) => WebpackStatsOptions); | ||
export declare const webpackStats: (options?: WebpackStatsOptionsOrBuilder) => Plugin; | ||
export {}; |
import type { OutputAsset, OutputBundle, OutputChunk, RenderedModule } from 'rollup'; | ||
import type { ExcludeFilepathOption } from './utils'; | ||
export type WebpackStatsFilteredAsset = { | ||
@@ -71,10 +70,2 @@ name: string; | ||
/** | ||
* Exclude matching assets | ||
*/ | ||
excludeAssets?: ExcludeFilepathOption; | ||
/** | ||
* Exclude matching modules | ||
*/ | ||
excludeModules?: ExcludeFilepathOption; | ||
/** | ||
* Callback function to access and mutate the resulting stats after the transformation | ||
@@ -81,0 +72,0 @@ */ |
@@ -13,6 +13,2 @@ import type { OutputChunk } from 'rollup'; | ||
export type ExcludeFilepathOption = ExcludeFilepathParam | Array<ExcludeFilepathParam>; | ||
/** | ||
* Check if filepath should be excluded based on a config | ||
*/ | ||
export declare function checkExcludeFilepath(filepath: string, option?: ExcludeFilepathOption): boolean; | ||
export {}; |
{ | ||
"name": "rollup-plugin-webpack-stats", | ||
"version": "1.2.4-beta.6", | ||
"version": "2.0.0-beta.0", | ||
"private": false, | ||
@@ -60,12 +60,12 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@release-it/conventional-changelog": "9.0.3", | ||
"@release-it/conventional-changelog": "10.0.0", | ||
"@rollup/plugin-typescript": "12.1.2", | ||
"@tsconfig/node18": "18.2.4", | ||
"@types/node": "22.10.2", | ||
"@types/node": "22.10.5", | ||
"dotenv": "16.4.7", | ||
"husky": "9.1.7", | ||
"release-it": "17.10.0", | ||
"rollup": "4.28.1", | ||
"release-it": "18.1.1", | ||
"rollup": "4.30.1", | ||
"tslib": "2.8.1", | ||
"typescript": "5.7.2", | ||
"typescript": "5.7.3", | ||
"vitest": "2.1.8" | ||
@@ -75,3 +75,6 @@ }, | ||
"rollup": "^3.0.0 || ^4.0.0" | ||
}, | ||
"dependencies": { | ||
"rollup-plugin-stats": "1.2.1" | ||
} | ||
} |
@@ -59,5 +59,7 @@ # rollup-plugin-webpack-stats | ||
- `fileName` - JSON stats file inside rollup/vite output directory | ||
- `excludeAssets` - exclude matching assets: `string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>` | ||
- `excludeModules` - exclude matching modules: `string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>` | ||
- `transform` - access and mutate the resulting stats after the conversion: `(stats: WebpackStatsFilterd, sources: TransformSources, bundle: OutputBundle) => WebpackStatsFilterd` | ||
- `moduleOriginalSize` - extract module original size or rendered size (default: `false`) | ||
- rollup stats options ([rollup-plugin-stats](https://github.com/relative-ci/rollup-plugin-stats#options)) | ||
- `excludeAssets` - exclude matching assets: `string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>` | ||
- `excludeModules` - exclude matching modules: `string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>` | ||
@@ -64,0 +66,0 @@ ### Examples |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175
37274
2
518
+ Addedrollup-plugin-stats@1.2.1
+ Addedrollup-plugin-stats@1.2.1(transitive)