@rsbuild/core 1.6.11 → 1.6.12-canary-20251204065915
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/compiled/css-loader/index.js +18 -18
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/0~range-parser.js +1 -1
- package/dist/131.js +198 -126
- package/dist/2~open.cjs +1 -1
- package/dist/2~range-parser.cjs +1 -1
- package/dist/index.cjs +208 -137
- package/dist-types/helpers/format.d.ts +1 -1
- package/dist-types/helpers/stats.d.ts +1 -1
- package/dist-types/plugins/fileSize.d.ts +2 -0
- package/dist-types/types/config.d.ts +11 -0
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { StatsError } from '@rspack/core';
|
|
2
|
-
export declare function formatStatsError(stats: StatsError): string;
|
|
2
|
+
export declare function formatStatsError(stats: StatsError, root: string): string;
|
|
@@ -19,7 +19,7 @@ export type RsbuildAsset = {
|
|
|
19
19
|
};
|
|
20
20
|
export declare const getAssetsFromStats: (stats: Rspack.Stats) => RsbuildAsset[];
|
|
21
21
|
export declare function getRsbuildStats(statsInstance: Rspack.Stats | Rspack.MultiStats, compiler: Rspack.Compiler | Rspack.MultiCompiler, action?: ActionType): RsbuildStats;
|
|
22
|
-
export declare function formatStats(stats: RsbuildStats, hasErrors: boolean): {
|
|
22
|
+
export declare function formatStats(stats: RsbuildStats, hasErrors: boolean, root: string): {
|
|
23
23
|
message?: string;
|
|
24
24
|
level?: string;
|
|
25
25
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { InternalContext, PrintFileSizeAsset, RsbuildPlugin } from '../types';
|
|
2
|
+
/** Normalize file name by removing hash for comparison across builds */
|
|
3
|
+
export declare function normalizeFileName(fileName: string): string;
|
|
2
4
|
/** Exclude source map and license files by default */
|
|
3
5
|
export declare const excludeAsset: (asset: PrintFileSizeAsset) => boolean;
|
|
4
6
|
export declare const pluginFileSize: (context: InternalContext) => RsbuildPlugin;
|
|
@@ -542,6 +542,11 @@ export type PrintFileSizeOptions = {
|
|
|
542
542
|
* @default (asset) => /\.(?:map|LICENSE\.txt)$/.test(asset.name)
|
|
543
543
|
*/
|
|
544
544
|
exclude?: (asset: PrintFileSizeAsset) => boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Whether to show file size difference compared to the previous build.
|
|
547
|
+
* @default false
|
|
548
|
+
*/
|
|
549
|
+
diff?: boolean;
|
|
545
550
|
};
|
|
546
551
|
export interface PreconnectOption {
|
|
547
552
|
/**
|
|
@@ -999,6 +1004,12 @@ export type ManifestObjectConfig = {
|
|
|
999
1004
|
* @default (file: FileDescriptor) => !file.name.endsWith('.LICENSE.txt')
|
|
1000
1005
|
*/
|
|
1001
1006
|
filter?: (file: FileDescriptor) => boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* Controls whether the generated manifest includes the static asset prefix in file paths.
|
|
1009
|
+
* The prefix is taken from `dev.assetPrefix` and `output.assetPrefix`.
|
|
1010
|
+
* @default true
|
|
1011
|
+
*/
|
|
1012
|
+
prefix?: boolean;
|
|
1002
1013
|
};
|
|
1003
1014
|
export type ManifestConfig = string | boolean | ManifestObjectConfig;
|
|
1004
1015
|
export type CleanDistPathObject = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12-canary-20251204065915",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"types.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rspack/core": "1.6.
|
|
49
|
+
"@rspack/core": "npm:@rspack-canary/core@1.6.7-canary-63b4dae2-20251204065915",
|
|
50
50
|
"@rspack/lite-tapable": "~1.1.0",
|
|
51
51
|
"@swc/helpers": "^0.5.17",
|
|
52
52
|
"core-js": "~3.47.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@jridgewell/remapping": "^2.3.5",
|
|
57
57
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
58
|
-
"@rslib/core": "0.18.
|
|
58
|
+
"@rslib/core": "0.18.3",
|
|
59
59
|
"@types/connect": "3.4.38",
|
|
60
60
|
"@types/cors": "^2.8.19",
|
|
61
61
|
"@types/node": "^24.10.1",
|