@rsbuild/core 1.6.10 → 1.6.12-canary-63b4dae2-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.
@@ -4,20 +4,6 @@
4
4
  * MIT Licensed
5
5
  */
6
6
 
7
- /*!
8
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
9
- *
10
- * Copyright (c) 2014-2017, Jon Schlinkert.
11
- * Released under the MIT License.
12
- */
13
-
14
- /*!
15
- * isobject <https://github.com/jonschlinkert/isobject>
16
- *
17
- * Copyright (c) 2014-2017, Jon Schlinkert.
18
- * Released under the MIT License.
19
- */
20
-
21
7
  /*!
22
8
  * on-finished
23
9
  * Copyright(c) 2013 Jonathan Ong
@@ -25,13 +11,6 @@
25
11
  * MIT Licensed
26
12
  */
27
13
 
28
- /*!
29
- * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
30
- *
31
- * Copyright (c) 2015-present, Jon Schlinkert.
32
- * Released under the MIT License.
33
- */
34
-
35
14
  /**
36
15
  * Autoload Config for PostCSS
37
16
  *
@@ -5,7 +5,7 @@ function __webpack_require__(moduleId) {
5
5
  var module = __webpack_module_cache__[moduleId] = {
6
6
  exports: {}
7
7
  };
8
- return __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__), module.exports;
8
+ return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
9
9
  }
10
10
  __webpack_require__.m = __webpack_modules__, __webpack_require__.add = function registerModules(modules) {
11
11
  Object.assign(__webpack_require__.m, modules);
@@ -15,6 +15,7 @@ export declare const MEDIA_DIST_DIR = "static/media";
15
15
  export declare const ASSETS_DIST_DIR = "static/assets";
16
16
  export declare const LOADER_PATH: string;
17
17
  export declare const STATIC_PATH: string;
18
+ export declare const CLIENT_PATH: string;
18
19
  export declare const COMPILED_PATH: string;
19
20
  export declare const TS_CONFIG_FILE = "tsconfig.json";
20
21
  export declare const HMR_SOCKET_PATH = "/rsbuild-hmr";
@@ -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
  };
@@ -9,6 +9,7 @@ type CompiledPackages = {
9
9
  chokidar: typeof import('../../compiled/chokidar').default;
10
10
  tinyglobby: typeof import('../../compiled/tinyglobby');
11
11
  picocolors: typeof import('../../compiled/picocolors').default;
12
+ 'webpack-merge': typeof import('../../compiled/webpack-merge');
12
13
  'html-rspack-plugin': typeof import('../../compiled/html-rspack-plugin').default;
13
14
  'http-proxy-middleware': typeof import('../../compiled/http-proxy-middleware');
14
15
  'webpack-bundle-analyzer': typeof import('../../compiled/webpack-bundle-analyzer');
@@ -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;
@@ -54,6 +54,10 @@ export declare class SocketServer {
54
54
  * Send error messages to the client and render error overlay
55
55
  */
56
56
  sendError(errors: Rspack.StatsError[], token: string): void;
57
+ /**
58
+ * Send warning messages to the client
59
+ */
60
+ sendWarning(warnings: Rspack.StatsError[], token: string): void;
57
61
  /**
58
62
  * Write message to each socket
59
63
  * @param message - The message to send
@@ -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.10",
3
+ "version": "1.6.12-canary-63b4dae2-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.5",
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.2",
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",
@@ -74,7 +74,7 @@
74
74
  "html-rspack-plugin": "6.1.4",
75
75
  "http-proxy-middleware": "^2.0.9",
76
76
  "launch-editor-middleware": "^2.12.0",
77
- "memfs": "^4.51.0",
77
+ "memfs": "^4.51.1",
78
78
  "mrmime": "^2.0.1",
79
79
  "on-finished": "2.4.1",
80
80
  "open": "^11.0.0",
@@ -85,7 +85,7 @@
85
85
  "prebundle": "1.6.0",
86
86
  "range-parser": "^1.2.1",
87
87
  "reduce-configs": "^1.1.1",
88
- "rslog": "^1.3.0",
88
+ "rslog": "^1.3.2",
89
89
  "rspack-chain": "^1.4.1",
90
90
  "rspack-manifest-plugin": "5.2.0",
91
91
  "sirv": "^3.0.2",