rollup-plugin-stats 3.0.0 → 3.0.1
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/dist/extract.d.cts +9 -10
- package/dist/extract.d.cts.map +1 -1
- package/dist/extract.d.mts +9 -10
- package/dist/extract.d.mts.map +1 -1
- package/dist/plugin.d.cts +5 -6
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +5 -6
- package/dist/plugin.d.mts.map +1 -1
- package/dist/types.d.cts +5 -6
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +5 -6
- package/dist/types.d.mts.map +1 -1
- package/dist/utils/check-exclude-filepath.d.cts +1 -2
- package/dist/utils/check-exclude-filepath.d.cts.map +1 -1
- package/dist/utils/check-exclude-filepath.d.mts +1 -2
- package/dist/utils/check-exclude-filepath.d.mts.map +1 -1
- package/dist/write.d.cts +2 -3
- package/dist/write.d.cts.map +1 -1
- package/dist/write.d.mts +2 -3
- package/dist/write.d.mts.map +1 -1
- package/package.json +13 -13
package/dist/extract.d.cts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ExcludeFilepathPatterns } from "./utils/check-exclude-filepath.cjs";
|
|
2
2
|
import { OutputAsset, OutputBundle, OutputChunk, RenderedModule } from "./types.cjs";
|
|
3
3
|
//#region src/extract.d.ts
|
|
4
|
-
type AssetStatsOptionalProperties = {
|
|
4
|
+
export type AssetStatsOptionalProperties = {
|
|
5
5
|
source?: OutputAsset['source'];
|
|
6
6
|
};
|
|
7
|
-
type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> & AssetStatsOptionalProperties;
|
|
8
|
-
type ModuleStatsOptionalProperties = {
|
|
7
|
+
export type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> & AssetStatsOptionalProperties;
|
|
8
|
+
export type ModuleStatsOptionalProperties = {
|
|
9
9
|
code?: RenderedModule['code'] | null;
|
|
10
10
|
};
|
|
11
|
-
type ModuleStats = Omit<RenderedModule, keyof ModuleStatsOptionalProperties> & ModuleStatsOptionalProperties;
|
|
12
|
-
type ChunkStatsOptionalProperties = {
|
|
11
|
+
export type ModuleStats = Omit<RenderedModule, keyof ModuleStatsOptionalProperties> & ModuleStatsOptionalProperties;
|
|
12
|
+
export type ChunkStatsOptionalProperties = {
|
|
13
13
|
code?: OutputChunk['code'];
|
|
14
14
|
map?: OutputChunk['map'];
|
|
15
15
|
};
|
|
16
|
-
type ChunkStats = Omit<OutputChunk, keyof ChunkStatsOptionalProperties | 'modules'> & {
|
|
16
|
+
export type ChunkStats = Omit<OutputChunk, keyof ChunkStatsOptionalProperties | 'modules'> & {
|
|
17
17
|
modules: Record<string, ModuleStats>;
|
|
18
18
|
} & ChunkStatsOptionalProperties;
|
|
19
|
-
type Stats = Record<string, AssetStats | ChunkStats>;
|
|
20
|
-
type StatsOptions = {
|
|
19
|
+
export type Stats = Record<string, AssetStats | ChunkStats>;
|
|
20
|
+
export type StatsOptions = {
|
|
21
21
|
/**
|
|
22
22
|
* Output asset/module sources
|
|
23
23
|
* @default false
|
|
@@ -46,7 +46,6 @@ type StatsOptions = {
|
|
|
46
46
|
*
|
|
47
47
|
* @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
export default function extractRollupStats(bundle: OutputBundle, options?: StatsOptions): Stats;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { AssetStats, AssetStatsOptionalProperties, ChunkStats, ChunkStatsOptionalProperties, ModuleStats, ModuleStatsOptionalProperties, Stats, StatsOptions, extractRollupStats as default };
|
|
52
51
|
//# sourceMappingURL=extract.d.cts.map
|
package/dist/extract.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.d.cts","names":[],"sources":["../src/extract.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"extract.d.cts","names":[],"sources":["../src/extract.ts"],"mappings":";;;YAaY;EACV,SAAS;;YAGC,aAAa,KAAK,mBAAmB,gCAC/C;YAEU;EACV,OAAO;;YAGG,cAAc,KACxB,sBACM,iCAEN;YAEU;EACV,OAAO;EACP,MAAM;;YAGI,aAAa,KACvB,mBACM;EAEN,SAAS,eAAe;IACtB;YAEQ,QAAQ,eAAe,aAAa;YAEpC;;;;;EAKV;;;;;EAKA;;;;EAIA,gBAAgB;;;;EAIhB,iBAAiB;;;;;;;;;;;wBAYK,mBACtB,QAAQ,cACR,UAAS,eACR"}
|
package/dist/extract.d.mts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ExcludeFilepathPatterns } from "./utils/check-exclude-filepath.mjs";
|
|
2
2
|
import { OutputAsset, OutputBundle, OutputChunk, RenderedModule } from "./types.mjs";
|
|
3
3
|
//#region src/extract.d.ts
|
|
4
|
-
type AssetStatsOptionalProperties = {
|
|
4
|
+
export type AssetStatsOptionalProperties = {
|
|
5
5
|
source?: OutputAsset['source'];
|
|
6
6
|
};
|
|
7
|
-
type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> & AssetStatsOptionalProperties;
|
|
8
|
-
type ModuleStatsOptionalProperties = {
|
|
7
|
+
export type AssetStats = Omit<OutputAsset, keyof AssetStatsOptionalProperties> & AssetStatsOptionalProperties;
|
|
8
|
+
export type ModuleStatsOptionalProperties = {
|
|
9
9
|
code?: RenderedModule['code'] | null;
|
|
10
10
|
};
|
|
11
|
-
type ModuleStats = Omit<RenderedModule, keyof ModuleStatsOptionalProperties> & ModuleStatsOptionalProperties;
|
|
12
|
-
type ChunkStatsOptionalProperties = {
|
|
11
|
+
export type ModuleStats = Omit<RenderedModule, keyof ModuleStatsOptionalProperties> & ModuleStatsOptionalProperties;
|
|
12
|
+
export type ChunkStatsOptionalProperties = {
|
|
13
13
|
code?: OutputChunk['code'];
|
|
14
14
|
map?: OutputChunk['map'];
|
|
15
15
|
};
|
|
16
|
-
type ChunkStats = Omit<OutputChunk, keyof ChunkStatsOptionalProperties | 'modules'> & {
|
|
16
|
+
export type ChunkStats = Omit<OutputChunk, keyof ChunkStatsOptionalProperties | 'modules'> & {
|
|
17
17
|
modules: Record<string, ModuleStats>;
|
|
18
18
|
} & ChunkStatsOptionalProperties;
|
|
19
|
-
type Stats = Record<string, AssetStats | ChunkStats>;
|
|
20
|
-
type StatsOptions = {
|
|
19
|
+
export type Stats = Record<string, AssetStats | ChunkStats>;
|
|
20
|
+
export type StatsOptions = {
|
|
21
21
|
/**
|
|
22
22
|
* Output asset/module sources
|
|
23
23
|
* @default false
|
|
@@ -46,7 +46,6 @@ type StatsOptions = {
|
|
|
46
46
|
*
|
|
47
47
|
* @NOTE structuredClone is not supported by rolldown-vite: https://github.com/vitejs/rolldown-vite/issues/128
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
export default function extractRollupStats(bundle: OutputBundle, options?: StatsOptions): Stats;
|
|
50
50
|
//#endregion
|
|
51
|
-
export { AssetStats, AssetStatsOptionalProperties, ChunkStats, ChunkStatsOptionalProperties, ModuleStats, ModuleStatsOptionalProperties, Stats, StatsOptions, extractRollupStats as default };
|
|
52
51
|
//# sourceMappingURL=extract.d.mts.map
|
package/dist/extract.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.d.mts","names":[],"sources":["../src/extract.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"extract.d.mts","names":[],"sources":["../src/extract.ts"],"mappings":";;;YAaY;EACV,SAAS;;YAGC,aAAa,KAAK,mBAAmB,gCAC/C;YAEU;EACV,OAAO;;YAGG,cAAc,KACxB,sBACM,iCAEN;YAEU;EACV,OAAO;EACP,MAAM;;YAGI,aAAa,KACvB,mBACM;EAEN,SAAS,eAAe;IACtB;YAEQ,QAAQ,eAAe,aAAa;YAEpC;;;;;EAKV;;;;;EAKA;;;;EAIA,gBAAgB;;;;EAIhB,iBAAiB;;;;;;;;;;;wBAYK,mBACtB,QAAQ,cACR,UAAS,eACR"}
|
package/dist/plugin.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { RollupStatsWrite } from "./write.cjs";
|
|
|
6
6
|
* A subset of resolved output options provided to the `generateBundle` hook by Vite/Rolldown/Rollup,
|
|
7
7
|
* containing only the fields this plugin uses to generate a stats file for a specific output.
|
|
8
8
|
*/
|
|
9
|
-
type OutputOptions = {
|
|
9
|
+
export type OutputOptions = {
|
|
10
10
|
/** Output directory for the generated files. */
|
|
11
11
|
dir?: string | undefined;
|
|
12
12
|
/** Output format */
|
|
@@ -30,7 +30,7 @@ type PluginContext = {
|
|
|
30
30
|
* async generateBundle(outputOptions, bundle) { ... },
|
|
31
31
|
* }
|
|
32
32
|
*/
|
|
33
|
-
type Plugin = {
|
|
33
|
+
export type Plugin = {
|
|
34
34
|
/** Unique identifier for the plugin, used in error messages and logs. */
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
@@ -40,7 +40,7 @@ type Plugin = {
|
|
|
40
40
|
*/
|
|
41
41
|
generateBundle?: (this: PluginContext, outputOptions: OutputOptions, bundle: OutputBundle, isWrite: boolean) => void | Promise<void>;
|
|
42
42
|
};
|
|
43
|
-
type RollupStatsOptions = {
|
|
43
|
+
export type RollupStatsOptions = {
|
|
44
44
|
/**
|
|
45
45
|
* Output filename relative to Rollup output directory or absolute
|
|
46
46
|
* @default: stats.json
|
|
@@ -56,8 +56,7 @@ type RollupStatsOptions = {
|
|
|
56
56
|
*/
|
|
57
57
|
write?: RollupStatsWrite;
|
|
58
58
|
};
|
|
59
|
-
type RollupStatsOptionsOrOutputOptions = RollupStatsOptions | ((outputOptions: OutputOptions) => RollupStatsOptions);
|
|
60
|
-
declare function rollupStats(options?: RollupStatsOptionsOrOutputOptions): Plugin;
|
|
59
|
+
export type RollupStatsOptionsOrOutputOptions = RollupStatsOptions | ((outputOptions: OutputOptions) => RollupStatsOptions);
|
|
60
|
+
export declare function rollupStats(options?: RollupStatsOptionsOrOutputOptions): Plugin;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { OutputOptions, Plugin, RollupStatsOptions, RollupStatsOptionsOrOutputOptions, rollupStats };
|
|
63
62
|
//# sourceMappingURL=plugin.d.cts.map
|
package/dist/plugin.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;YAeY;;EAEV;;EAGA;;;;;KAiBG;;EAEH,OAAO;;EAGP,OAAO;;;;;;;;;;;YAYG;;EAEV;;;;;;EAOA,kBACE,MAAM,eACN,eAAe,eACf,QAAQ,cACR,4BACU;;YAGF;;;;;EAKV;;;;EAIA,QAAQ;;;;;EAKR,QAAQ;;YAGE,oCACR,uBACE,eAAe,kBAAkB;wBAEvB,YACd,UAAS,oCACR"}
|
package/dist/plugin.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { RollupStatsWrite } from "./write.mjs";
|
|
|
6
6
|
* A subset of resolved output options provided to the `generateBundle` hook by Vite/Rolldown/Rollup,
|
|
7
7
|
* containing only the fields this plugin uses to generate a stats file for a specific output.
|
|
8
8
|
*/
|
|
9
|
-
type OutputOptions = {
|
|
9
|
+
export type OutputOptions = {
|
|
10
10
|
/** Output directory for the generated files. */
|
|
11
11
|
dir?: string | undefined;
|
|
12
12
|
/** Output format */
|
|
@@ -30,7 +30,7 @@ type PluginContext = {
|
|
|
30
30
|
* async generateBundle(outputOptions, bundle) { ... },
|
|
31
31
|
* }
|
|
32
32
|
*/
|
|
33
|
-
type Plugin = {
|
|
33
|
+
export type Plugin = {
|
|
34
34
|
/** Unique identifier for the plugin, used in error messages and logs. */
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
@@ -40,7 +40,7 @@ type Plugin = {
|
|
|
40
40
|
*/
|
|
41
41
|
generateBundle?: (this: PluginContext, outputOptions: OutputOptions, bundle: OutputBundle, isWrite: boolean) => void | Promise<void>;
|
|
42
42
|
};
|
|
43
|
-
type RollupStatsOptions = {
|
|
43
|
+
export type RollupStatsOptions = {
|
|
44
44
|
/**
|
|
45
45
|
* Output filename relative to Rollup output directory or absolute
|
|
46
46
|
* @default: stats.json
|
|
@@ -56,8 +56,7 @@ type RollupStatsOptions = {
|
|
|
56
56
|
*/
|
|
57
57
|
write?: RollupStatsWrite;
|
|
58
58
|
};
|
|
59
|
-
type RollupStatsOptionsOrOutputOptions = RollupStatsOptions | ((outputOptions: OutputOptions) => RollupStatsOptions);
|
|
60
|
-
declare function rollupStats(options?: RollupStatsOptionsOrOutputOptions): Plugin;
|
|
59
|
+
export type RollupStatsOptionsOrOutputOptions = RollupStatsOptions | ((outputOptions: OutputOptions) => RollupStatsOptions);
|
|
60
|
+
export declare function rollupStats(options?: RollupStatsOptionsOrOutputOptions): Plugin;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { OutputOptions, Plugin, RollupStatsOptions, RollupStatsOptionsOrOutputOptions, rollupStats };
|
|
63
62
|
//# sourceMappingURL=plugin.d.mts.map
|
package/dist/plugin.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;;;;;;YAeY;;EAEV;;EAGA;;;;;KAiBG;;EAEH,OAAO;;EAGP,OAAO;;;;;;;;;;;YAYG;;EAEV;;;;;;EAOA,kBACE,MAAM,eACN,eAAe,eACf,QAAQ,cACR,4BACU;;YAGF;;;;;EAKV;;;;EAIA,QAAQ;;;;;EAKR,QAAQ;;YAGE,oCACR,uBACE,eAAe,kBAAkB;wBAEvB,YACd,UAAS,oCACR"}
|
package/dist/types.d.cts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L98
|
|
7
7
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L26
|
|
8
8
|
*/
|
|
9
|
-
type SourceMap = {
|
|
9
|
+
export type SourceMap = {
|
|
10
10
|
/** Name of the generated file this source map corresponds to. */
|
|
11
11
|
file: string;
|
|
12
12
|
/** Base64 VLQ-encoded string describing the source mappings. */
|
|
@@ -26,7 +26,7 @@ type SourceMap = {
|
|
|
26
26
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L958
|
|
27
27
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L85
|
|
28
28
|
*/
|
|
29
|
-
type OutputAsset = {
|
|
29
|
+
export type OutputAsset = {
|
|
30
30
|
type: 'asset';
|
|
31
31
|
/** The emitted file name of the asset relative to the output directory. */
|
|
32
32
|
fileName: string;
|
|
@@ -69,7 +69,7 @@ type OutputAsset = {
|
|
|
69
69
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L963
|
|
70
70
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L40
|
|
71
71
|
*/
|
|
72
|
-
type RenderedModule = {
|
|
72
|
+
export type RenderedModule = {
|
|
73
73
|
/**
|
|
74
74
|
* The module code that Vite/Rolldown/Rollup included in the bundle, or `null` when the
|
|
75
75
|
* module was fully tree-shaken.
|
|
@@ -91,7 +91,7 @@ type RenderedModule = {
|
|
|
91
91
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L992
|
|
92
92
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L85
|
|
93
93
|
*/
|
|
94
|
-
type OutputChunk = {
|
|
94
|
+
export type OutputChunk = {
|
|
95
95
|
type: 'chunk';
|
|
96
96
|
/** The chunk name as used in `chunkFileNames` and `entryFileNames` patterns */
|
|
97
97
|
name: string;
|
|
@@ -153,7 +153,6 @@ type OutputChunk = {
|
|
|
153
153
|
* The complete output bundle produced by Vite/Rolldown/Rollup — a map from emitted file name
|
|
154
154
|
* to its corresponding asset or chunk descriptor.
|
|
155
155
|
*/
|
|
156
|
-
type OutputBundle = Record<string, OutputAsset | OutputChunk>;
|
|
156
|
+
export type OutputBundle = Record<string, OutputAsset | OutputChunk>;
|
|
157
157
|
//#endregion
|
|
158
|
-
export { OutputAsset, OutputBundle, OutputChunk, RenderedModule, SourceMap };
|
|
159
158
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;YAOY;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;YASU;EACV;;EAGA;;;;;EAMA;;EAGA;;;;;EAMA;;EAGA;;;;;EAMA,kBAAkB;;;;;;;EAQlB;;EAGA;;IAEE,gBAAgB;;IAEhB,aAAa;;;;;;;;YASL;;;;;;WAMD;;EAGT;;EAGA;;EAGA;;EAGA;;;;;;;;YASU;EACV;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;EAMA;;EAGA;;EAGA,mBAAmB;;EAGnB;;EAGA;;EAGA;;EAGA;;EAGA;;;;;EAMA,SAAS,eAAe;;EAGxB;;;;;EAMA;;;;;EAMA,MAAM;;EAGN;;IAEE,gBAAgB;;IAEhB,aAAa;;;;;;;YAQL,eAAe,eAAe,cAAc"}
|
package/dist/types.d.mts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L98
|
|
7
7
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L26
|
|
8
8
|
*/
|
|
9
|
-
type SourceMap = {
|
|
9
|
+
export type SourceMap = {
|
|
10
10
|
/** Name of the generated file this source map corresponds to. */
|
|
11
11
|
file: string;
|
|
12
12
|
/** Base64 VLQ-encoded string describing the source mappings. */
|
|
@@ -26,7 +26,7 @@ type SourceMap = {
|
|
|
26
26
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L958
|
|
27
27
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L85
|
|
28
28
|
*/
|
|
29
|
-
type OutputAsset = {
|
|
29
|
+
export type OutputAsset = {
|
|
30
30
|
type: 'asset';
|
|
31
31
|
/** The emitted file name of the asset relative to the output directory. */
|
|
32
32
|
fileName: string;
|
|
@@ -69,7 +69,7 @@ type OutputAsset = {
|
|
|
69
69
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L963
|
|
70
70
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L40
|
|
71
71
|
*/
|
|
72
|
-
type RenderedModule = {
|
|
72
|
+
export type RenderedModule = {
|
|
73
73
|
/**
|
|
74
74
|
* The module code that Vite/Rolldown/Rollup included in the bundle, or `null` when the
|
|
75
75
|
* module was fully tree-shaken.
|
|
@@ -91,7 +91,7 @@ type RenderedModule = {
|
|
|
91
91
|
* @see https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L992
|
|
92
92
|
* @see https://github.com/rolldown/rolldown/blob/main/packages/rolldown/src/types/rolldown-output.ts#L85
|
|
93
93
|
*/
|
|
94
|
-
type OutputChunk = {
|
|
94
|
+
export type OutputChunk = {
|
|
95
95
|
type: 'chunk';
|
|
96
96
|
/** The chunk name as used in `chunkFileNames` and `entryFileNames` patterns */
|
|
97
97
|
name: string;
|
|
@@ -153,7 +153,6 @@ type OutputChunk = {
|
|
|
153
153
|
* The complete output bundle produced by Vite/Rolldown/Rollup — a map from emitted file name
|
|
154
154
|
* to its corresponding asset or chunk descriptor.
|
|
155
155
|
*/
|
|
156
|
-
type OutputBundle = Record<string, OutputAsset | OutputChunk>;
|
|
156
|
+
export type OutputBundle = Record<string, OutputAsset | OutputChunk>;
|
|
157
157
|
//#endregion
|
|
158
|
-
export { OutputAsset, OutputBundle, OutputChunk, RenderedModule, SourceMap };
|
|
159
158
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;YAOY;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;YASU;EACV;;EAGA;;;;;EAMA;;EAGA;;;;;EAMA;;EAGA;;;;;EAMA,kBAAkB;;;;;;;EAQlB;;EAGA;;IAEE,gBAAgB;;IAEhB,aAAa;;;;;;;;YASL;;;;;;WAMD;;EAGT;;EAGA;;EAGA;;EAGA;;;;;;;;YASU;EACV;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;EAMA;;EAGA;;EAGA,mBAAmB;;EAGnB;;EAGA;;EAGA;;EAGA;;EAGA;;;;;EAMA,SAAS,eAAe;;EAGxB;;;;;EAMA;;;;;EAMA,MAAM;;EAGN;;IAEE,gBAAgB;;IAEhB,aAAa;;;;;;;YAQL,eAAe,eAAe,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/utils/check-exclude-filepath.d.ts
|
|
2
2
|
type ExcludeFilepathParam = string | RegExp | ((filepath: string) => boolean);
|
|
3
|
-
type ExcludeFilepathPatterns = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
|
|
3
|
+
export type ExcludeFilepathPatterns = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { ExcludeFilepathPatterns };
|
|
6
5
|
//# sourceMappingURL=check-exclude-filepath.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-exclude-filepath.d.cts","names":[],"sources":["../../src/utils/check-exclude-filepath.ts"],"mappings":";KAAK,gCAAgC,WAAW;
|
|
1
|
+
{"version":3,"file":"check-exclude-filepath.d.cts","names":[],"sources":["../../src/utils/check-exclude-filepath.ts"],"mappings":";KAAK,gCAAgC,WAAW;YAEpC,0BACR,uBACA,MAAM"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/utils/check-exclude-filepath.d.ts
|
|
2
2
|
type ExcludeFilepathParam = string | RegExp | ((filepath: string) => boolean);
|
|
3
|
-
type ExcludeFilepathPatterns = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
|
|
3
|
+
export type ExcludeFilepathPatterns = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { ExcludeFilepathPatterns };
|
|
6
5
|
//# sourceMappingURL=check-exclude-filepath.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-exclude-filepath.d.mts","names":[],"sources":["../../src/utils/check-exclude-filepath.ts"],"mappings":";KAAK,gCAAgC,WAAW;
|
|
1
|
+
{"version":3,"file":"check-exclude-filepath.d.mts","names":[],"sources":["../../src/utils/check-exclude-filepath.ts"],"mappings":";KAAK,gCAAgC,WAAW;YAEpC,0BACR,uBACA,MAAM"}
|
package/dist/write.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/write.d.ts
|
|
2
|
-
type RollupStatsWriteResponse = {
|
|
2
|
+
export type RollupStatsWriteResponse = {
|
|
3
3
|
filepath: string;
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
type RollupStatsWrite = (filepath: string, stats: Record<string, unknown>) => RollupStatsWriteResponse;
|
|
6
|
+
export type RollupStatsWrite = (filepath: string, stats: Record<string, unknown>) => RollupStatsWriteResponse;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { RollupStatsWrite, RollupStatsWriteResponse };
|
|
9
8
|
//# sourceMappingURL=write.d.cts.map
|
package/dist/write.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.d.cts","names":[],"sources":["../src/write.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"write.d.cts","names":[],"sources":["../src/write.ts"],"mappings":";YAGY;EACV;EACA;;YAGU,oBACV,kBACA,OAAO,4BACJ"}
|
package/dist/write.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/write.d.ts
|
|
2
|
-
type RollupStatsWriteResponse = {
|
|
2
|
+
export type RollupStatsWriteResponse = {
|
|
3
3
|
filepath: string;
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
type RollupStatsWrite = (filepath: string, stats: Record<string, unknown>) => RollupStatsWriteResponse;
|
|
6
|
+
export type RollupStatsWrite = (filepath: string, stats: Record<string, unknown>) => RollupStatsWriteResponse;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { RollupStatsWrite, RollupStatsWriteResponse };
|
|
9
8
|
//# sourceMappingURL=write.d.mts.map
|
package/dist/write.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.d.mts","names":[],"sources":["../src/write.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"write.d.mts","names":[],"sources":["../src/write.ts"],"mappings":";YAGY;EACV;EACA;;YAGU,oBACV,kBACA,OAAO,4BACJ"}
|
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": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -73,24 +73,24 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@eslint/js": "10.0.1",
|
|
76
|
-
"@release-it/conventional-changelog": "12.0.
|
|
76
|
+
"@release-it/conventional-changelog": "12.0.2",
|
|
77
77
|
"@types/deep-freeze-strict": "1.1.2",
|
|
78
|
-
"@types/node": "26.
|
|
78
|
+
"@types/node": "26.6.3",
|
|
79
79
|
"deep-freeze-strict": "1.1.1",
|
|
80
|
-
"eslint": "10.
|
|
80
|
+
"eslint": "10.11.0",
|
|
81
81
|
"eslint-config-prettier": "10.1.8",
|
|
82
|
-
"globals": "17.
|
|
82
|
+
"globals": "17.12.0",
|
|
83
83
|
"husky": "9.1.7",
|
|
84
|
-
"lint-staged": "17.
|
|
85
|
-
"memfs": "4.
|
|
86
|
-
"prettier": "3.9.
|
|
87
|
-
"release-it": "21.0
|
|
84
|
+
"lint-staged": "17.6.0",
|
|
85
|
+
"memfs": "4.79.0",
|
|
86
|
+
"prettier": "3.9.9",
|
|
87
|
+
"release-it": "21.1.0",
|
|
88
88
|
"rimraf": "6.1.3",
|
|
89
|
-
"tsdown": "0.
|
|
89
|
+
"tsdown": "0.23.0",
|
|
90
90
|
"typescript": "6.0.3",
|
|
91
|
-
"typescript-eslint": "8.
|
|
92
|
-
"vite": "8.
|
|
93
|
-
"vitest": "
|
|
91
|
+
"typescript-eslint": "8.70.1",
|
|
92
|
+
"vite": "8.3.1",
|
|
93
|
+
"vitest": "5.0.2"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"rolldown": "^1.0.0-beta.0",
|