@rsbuild/core 2.0.15 → 2.1.0-rc.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/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +0 -1
- package/dist/756.js +105 -86
- package/dist/http-proxy-middleware.js +3 -2
- package/dist/memfs.js +98 -98
- package/dist/{manifest-plugin.js → rspack-manifest-plugin.js} +6 -6
- package/dist-types/server/cliShortcuts.d.ts +5 -1
- package/dist-types/server/helper.d.ts +3 -2
- package/dist-types/types/config.d.ts +10 -3
- package/package.json +6 -6
- /package/dist/{sirv.js → build.js} +0 -0
- /package/dist/{ws.js → wrapper.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
2
|
import "./756.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
4
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/helpers.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5
5
|
exports.transformFiles = exports.reduceChunk = exports.reduceAssets = exports.generateManifest = void 0;
|
|
6
6
|
let node_path_1 = __webpack_require__("node:path?435f");
|
|
7
7
|
exports.generateManifest = (compilation, files, { generate, seed = {} })=>generate ? generate(seed, files, Array.from(compilation.entrypoints.entries()).reduce((e, [name, entrypoint])=>Object.assign(e, {
|
|
@@ -61,9 +61,9 @@ __webpack_require__.add({
|
|
|
61
61
|
'sort'
|
|
62
62
|
].filter((fname)=>!!options[fname]).reduce((prev, fname)=>prev[fname](options[fname]), files).map(standardizeFilePaths);
|
|
63
63
|
},
|
|
64
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
64
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/hooks.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
65
65
|
exports.getCompilerHooks = exports.emitHook = exports.beforeRunHook = void 0;
|
|
66
|
-
let node_fs_1 = __webpack_require__("node:fs?9592"), node_path_1 = __webpack_require__("node:path?435f"), lite_tapable_1 = __webpack_require__("../../node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs"), helpers_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
66
|
+
let node_fs_1 = __webpack_require__("node:fs?9592"), node_path_1 = __webpack_require__("node:path?435f"), lite_tapable_1 = __webpack_require__("../../node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs"), helpers_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/helpers.js"), compilerHookMap = new WeakMap(), getCompilerHooks = (compiler)=>{
|
|
67
67
|
let hooks = compilerHookMap.get(compiler);
|
|
68
68
|
return void 0 === hooks && (hooks = {
|
|
69
69
|
afterEmit: new lite_tapable_1.SyncWaterfallHook([
|
|
@@ -112,9 +112,9 @@ __webpack_require__.add({
|
|
|
112
112
|
getCompilerHooks(compiler).afterEmit.call(manifest);
|
|
113
113
|
};
|
|
114
114
|
},
|
|
115
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
115
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
116
116
|
exports.RspackManifestPlugin = void 0;
|
|
117
|
-
let node_path_1 = __webpack_require__("node:path?435f"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
117
|
+
let node_path_1 = __webpack_require__("node:path?435f"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/hooks.js"), emitCountMap = new Map(), defaults = {
|
|
118
118
|
assetHookStage: 1 / 0,
|
|
119
119
|
basePath: '',
|
|
120
120
|
fileName: 'manifest.json',
|
|
@@ -684,5 +684,5 @@ __webpack_require__.add({
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
|
-
var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.0.
|
|
687
|
+
var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-rc.0/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;
|
|
688
688
|
export { RspackManifestPlugin };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { Logger } from '../logger';
|
|
2
2
|
import type { CliShortcut, NormalizedConfig } from '../types/config';
|
|
3
|
+
type PrintUrlsHandler = (options?: {
|
|
4
|
+
showAllRoutes?: boolean;
|
|
5
|
+
}) => void;
|
|
3
6
|
export declare const isCliShortcutsEnabled: (config: NormalizedConfig) => boolean;
|
|
4
7
|
// Normalize user input so shortcuts are case-insensitive
|
|
5
8
|
// and still work with accidental surrounding whitespace.
|
|
@@ -8,8 +11,9 @@ export declare function setupCliShortcuts({ help, openPage, closeServer, printUr
|
|
|
8
11
|
help?: boolean | string;
|
|
9
12
|
openPage: () => Promise<void>;
|
|
10
13
|
closeServer: () => Promise<void>;
|
|
11
|
-
printUrls:
|
|
14
|
+
printUrls: PrintUrlsHandler;
|
|
12
15
|
restartServer?: () => Promise<boolean>;
|
|
13
16
|
customShortcuts?: (shortcuts: CliShortcut[]) => CliShortcut[];
|
|
14
17
|
logger: Logger;
|
|
15
18
|
}): Promise<() => void>;
|
|
19
|
+
export { };
|
|
@@ -31,7 +31,7 @@ export declare const getRoutes: (context: InternalContext) => Routes;
|
|
|
31
31
|
/*
|
|
32
32
|
* format route by entry and adjust the index route to be the first
|
|
33
33
|
*/ export declare const formatRoutes: (entry: RsbuildEntry, base: string, distPathPrefix: string | undefined, outputStructure: OutputStructure | undefined) => Routes;
|
|
34
|
-
export declare function printServerURLs({ urls: originalUrls, port, routes, protocol, printUrls, fallbackPathname,
|
|
34
|
+
export declare function printServerURLs({ urls: originalUrls, port, routes, protocol, printUrls, fallbackPathname, showAllRoutes, cliShortcutsEnabled, originalConfig, logger }: {
|
|
35
35
|
urls: {
|
|
36
36
|
url: string;
|
|
37
37
|
label: string;
|
|
@@ -41,7 +41,8 @@ export declare function printServerURLs({ urls: originalUrls, port, routes, prot
|
|
|
41
41
|
protocol: string;
|
|
42
42
|
printUrls?: PrintUrls;
|
|
43
43
|
fallbackPathname?: string;
|
|
44
|
-
|
|
44
|
+
showAllRoutes?: boolean;
|
|
45
|
+
cliShortcutsEnabled: boolean;
|
|
45
46
|
originalConfig?: Readonly<RsbuildConfig>;
|
|
46
47
|
logger: Logger;
|
|
47
48
|
}): string | null;
|
|
@@ -255,12 +255,20 @@ export type HistoryApiFallbackOptions = {
|
|
|
255
255
|
to: HistoryApiFallbackTo;
|
|
256
256
|
}[];
|
|
257
257
|
};
|
|
258
|
-
export type
|
|
258
|
+
export type PrintUrlsParams = {
|
|
259
259
|
urls: string[];
|
|
260
260
|
port: number;
|
|
261
261
|
routes: Routes;
|
|
262
262
|
protocol: string;
|
|
263
|
-
}
|
|
263
|
+
};
|
|
264
|
+
export type PrintUrlsOptions = {
|
|
265
|
+
/**
|
|
266
|
+
* The maximum number of entry URLs to print.
|
|
267
|
+
* Set to `0` to print only the server URL without entry routes.
|
|
268
|
+
* @default 10
|
|
269
|
+
*/ maxRoutes?: number;
|
|
270
|
+
};
|
|
271
|
+
export type PrintUrls = boolean | PrintUrlsOptions | ((params: PrintUrlsParams) => (string | {
|
|
264
272
|
url: string;
|
|
265
273
|
label?: string;
|
|
266
274
|
})[] | void);
|
|
@@ -563,7 +571,6 @@ export interface PerformanceConfig {
|
|
|
563
571
|
*/ removeConsole?: boolean | ConsoleType[];
|
|
564
572
|
/**
|
|
565
573
|
* To enable or configure persistent build cache.
|
|
566
|
-
* @experimental This feature is experimental and may be changed in the future.
|
|
567
574
|
* @default false
|
|
568
575
|
*/ buildCache?: BuildCacheOptions | boolean;
|
|
569
576
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-rc.0",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"registry": "https://registry.npmjs.org/"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@rspack/core": "~2.0.
|
|
43
|
+
"@rspack/core": "~2.1.0-rc.0",
|
|
44
44
|
"@swc/helpers": "^0.5.23"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@jridgewell/remapping": "^2.3.5",
|
|
48
48
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
49
|
-
"@rslib/core": "0.
|
|
49
|
+
"@rslib/core": "0.23.0",
|
|
50
50
|
"@types/cors": "^2.8.19",
|
|
51
51
|
"@types/node": "^24.13.2",
|
|
52
52
|
"@types/on-finished": "2.3.5",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"deepmerge": "^4.3.1",
|
|
63
63
|
"dotenv-expand": "^13.0.0",
|
|
64
64
|
"html-rspack-plugin": "6.1.9",
|
|
65
|
-
"http-proxy-middleware": "4.1.
|
|
65
|
+
"http-proxy-middleware": "4.1.1",
|
|
66
66
|
"jiti": "^2.7.0",
|
|
67
67
|
"launch-editor-middleware": "^2.14.1",
|
|
68
|
-
"memfs": "^4.57.
|
|
68
|
+
"memfs": "^4.57.8",
|
|
69
69
|
"mrmime": "^2.0.1",
|
|
70
70
|
"on-finished": "2.4.1",
|
|
71
71
|
"open": "^11.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"range-parser": "^1.2.1",
|
|
77
77
|
"reduce-configs": "^2.0.1",
|
|
78
78
|
"rslog": "^2.1.3",
|
|
79
|
-
"rspack-chain": "^2.1.
|
|
79
|
+
"rspack-chain": "^2.1.1",
|
|
80
80
|
"rspack-manifest-plugin": "5.2.2",
|
|
81
81
|
"rspack-merge": "1.0.1",
|
|
82
82
|
"sirv": "^3.0.2",
|
|
File without changes
|
|
File without changes
|