@bundle-stats/plugin-webpack-filter 3.2.9 → 3.3.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.
- package/package.json +2 -2
- package/types/index.d.ts +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/plugin-webpack-filter",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "BundleStats webpack filter plugin",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"core-js": "3.20.2",
|
|
52
52
|
"lodash": "4.17.21"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "deb44e2ce6e24626147917c578ade82cf8ad36b6"
|
|
55
55
|
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { StatsAsset, StatsCompilation, StatsModule } from 'webpack';
|
|
2
|
+
interface BundleStatsOptions {
|
|
3
|
+
pathIgnorePattern?: string;
|
|
4
|
+
}
|
|
5
|
+
declare type WebpackStatsFilteredAsset = Pick<StatsAsset, 'name' | 'size'>;
|
|
6
|
+
interface WebpackStatsFileteredEntrypoint {
|
|
7
|
+
assets: Array<string>;
|
|
8
|
+
}
|
|
9
|
+
interface WebpackStatsFilteredChunk {
|
|
10
|
+
entry: boolean;
|
|
11
|
+
id: number | string;
|
|
12
|
+
initial: boolean;
|
|
13
|
+
files: Array<string>;
|
|
14
|
+
names: Array<string>;
|
|
15
|
+
}
|
|
16
|
+
interface WebpackStatsFileteredModule extends Pick<StatsModule, 'name' | 'size' | 'chunks'> {
|
|
17
|
+
modules?: Array<Pick<StatsModule, 'name' | 'size'>>;
|
|
18
|
+
}
|
|
19
|
+
interface WebpackStatsFiltered {
|
|
20
|
+
builtAt?: string;
|
|
21
|
+
hash?: string;
|
|
22
|
+
assets?: Array<WebpackStatsFilteredAsset>;
|
|
23
|
+
entrypoints?: Record<string, WebpackStatsFileteredEntrypoint>;
|
|
24
|
+
chunks?: Array<WebpackStatsFilteredChunk>;
|
|
25
|
+
modules?: Array<WebpackStatsFileteredModule>;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: (source: StatsCompilation, options?: BundleStatsOptions) => WebpackStatsFiltered;
|
|
28
|
+
export default _default;
|