@atlaspack/reporter-bundle-stats 2.14.22-typescript-b27501580.0 → 2.14.22-typescript-e99c742e9.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/lib/BundleStatsReporter.d.ts +23 -0
- package/package.json +6 -6
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { PackagedBundle, PluginOptions } from '@atlaspack/types';
|
2
|
+
import { Reporter } from '@atlaspack/plugin';
|
3
|
+
export type AssetStat = {
|
4
|
+
size: number;
|
5
|
+
name: string;
|
6
|
+
bundles: Array<string>;
|
7
|
+
};
|
8
|
+
export type BundleStat = {
|
9
|
+
size: number;
|
10
|
+
id: string;
|
11
|
+
assets: Array<string>;
|
12
|
+
};
|
13
|
+
export type BundleStats = {
|
14
|
+
bundles: {
|
15
|
+
[key: string]: BundleStat;
|
16
|
+
};
|
17
|
+
assets: {
|
18
|
+
[key: string]: AssetStat;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
declare const _default: Reporter;
|
22
|
+
export default _default;
|
23
|
+
export declare function getBundleStats(bundles: Array<PackagedBundle>, options: PluginOptions): BundleStats;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaspack/reporter-bundle-stats",
|
3
|
-
"version": "2.14.22-typescript-
|
3
|
+
"version": "2.14.22-typescript-e99c742e9.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -14,16 +14,16 @@
|
|
14
14
|
"node": ">= 16.0.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@atlaspack/core": "2.19.3-typescript-
|
18
|
-
"@atlaspack/plugin": "2.14.21-typescript-
|
19
|
-
"@atlaspack/utils": "2.17.3-typescript-
|
17
|
+
"@atlaspack/core": "2.19.3-typescript-e99c742e9.0",
|
18
|
+
"@atlaspack/plugin": "2.14.21-typescript-e99c742e9.0",
|
19
|
+
"@atlaspack/utils": "2.17.3-typescript-e99c742e9.0"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
|
-
"@atlaspack/types": "2.15.11-typescript-
|
22
|
+
"@atlaspack/types": "2.15.11-typescript-e99c742e9.0"
|
23
23
|
},
|
24
24
|
"type": "commonjs",
|
25
25
|
"scripts": {
|
26
26
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
27
27
|
},
|
28
|
-
"gitHead": "
|
28
|
+
"gitHead": "e99c742e92175ac411d807daf2ba45d5bacebb58"
|
29
29
|
}
|