@rsbuild/core 1.7.1 → 2.0.0-alpha.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/index.d.ts +2 -2
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/ws/index.js +59 -54
- package/compiled/ws/package.json +1 -1
- package/dist/131.js +1070 -1122
- package/dist/31.js +336 -0
- package/dist/710.js +445 -0
- package/dist/743.js +7 -0
- package/dist/{136.mjs → 88.js} +11 -13
- package/dist/client/hmr.js +0 -1
- package/dist/client/overlay.js +32 -21
- package/dist/connect.js +581 -0
- package/dist/connect.js.LICENSE.txt +54 -0
- package/dist/cors.js +188 -0
- package/dist/cors.js.LICENSE.txt +11 -0
- package/dist/launch-editor-middleware.js +439 -0
- package/dist/manifest-plugin.js +177 -0
- package/dist/memfs.js +3644 -0
- package/dist/{0~open.js → open.js} +21 -13
- package/dist/{0~range-parser.js → range-parser.js} +1 -1
- package/dist/remapping.js +196 -0
- package/dist/sirv.js +122 -0
- package/dist/tinyglobby.js +1463 -0
- package/dist/transformLoader.mjs +1 -1
- package/dist/transformRawLoader.mjs +1 -1
- package/dist-types/{provider/build.d.ts → build.d.ts} +2 -2
- package/dist-types/cli/commands.d.ts +1 -1
- package/dist-types/configChain.d.ts +0 -2
- package/dist-types/constants.d.ts +2 -3
- package/dist-types/{provider/createCompiler.d.ts → createCompiler.d.ts} +1 -1
- package/dist-types/defaultConfig.d.ts +1 -1
- package/dist-types/helpers/fs.d.ts +4 -0
- package/dist-types/helpers/index.d.ts +1 -1
- package/dist-types/helpers/url.d.ts +0 -1
- package/dist-types/helpers/vendors.d.ts +0 -13
- package/dist-types/hooks.d.ts +3 -5
- package/dist-types/index.d.ts +1 -1
- package/dist-types/{provider/initConfigs.d.ts → initConfigs.d.ts} +1 -1
- package/dist-types/inspectConfig.d.ts +5 -33
- package/dist-types/pluginHelper.d.ts +1 -1
- package/dist-types/plugins/css.d.ts +1 -1
- package/dist-types/plugins/inlineChunk.d.ts +1 -1
- package/dist-types/plugins/minimize.d.ts +2 -2
- package/dist-types/{provider/rspackConfig.d.ts → rspackConfig.d.ts} +1 -1
- package/dist-types/server/assets-middleware/getFileFromUrl.d.ts +1 -2
- package/dist-types/server/assets-middleware/setupOutputFileSystem.d.ts +1 -1
- package/dist-types/server/browserLogs.d.ts +1 -1
- package/dist-types/server/devMiddlewares.d.ts +1 -1
- package/dist-types/server/devServer.d.ts +1 -1
- package/dist-types/server/gzipMiddleware.d.ts +1 -1
- package/dist-types/server/helper.d.ts +13 -10
- package/dist-types/server/proxy.d.ts +2 -2
- package/dist-types/server/socketServer.d.ts +1 -1
- package/dist-types/types/config.d.ts +7 -51
- package/dist-types/types/context.d.ts +3 -2
- package/dist-types/types/hooks.d.ts +9 -9
- package/dist-types/types/plugin.d.ts +3 -40
- package/dist-types/types/rsbuild.d.ts +6 -31
- package/dist-types/types/thirdParty.d.ts +1 -4
- package/package.json +15 -20
- package/compiled/@jridgewell/remapping/index.d.ts +0 -1
- package/compiled/@jridgewell/remapping/index.js +0 -1222
- package/compiled/@jridgewell/remapping/license +0 -19
- package/compiled/@jridgewell/remapping/package.json +0 -1
- package/compiled/@jridgewell/trace-mapping/index.d.ts +0 -194
- package/compiled/@jridgewell/trace-mapping/index.js +0 -1408
- package/compiled/@jridgewell/trace-mapping/license +0 -19
- package/compiled/@jridgewell/trace-mapping/package.json +0 -1
- package/compiled/connect/index.d.ts +0 -90
- package/compiled/connect/index.js +0 -1240
- package/compiled/connect/license +0 -25
- package/compiled/connect/package.json +0 -1
- package/compiled/cors/index.d.ts +0 -56
- package/compiled/cors/index.js +0 -371
- package/compiled/cors/license +0 -22
- package/compiled/cors/package.json +0 -1
- package/compiled/launch-editor-middleware/index.d.ts +0 -1
- package/compiled/launch-editor-middleware/index.js +0 -719
- package/compiled/launch-editor-middleware/license +0 -21
- package/compiled/launch-editor-middleware/package.json +0 -1
- package/compiled/memfs/index.d.ts +0 -1462
- package/compiled/memfs/index.js +0 -1
- package/compiled/memfs/license +0 -201
- package/compiled/memfs/package.json +0 -1
- package/compiled/mrmime/index.d.ts +0 -4
- package/compiled/mrmime/index.js +0 -456
- package/compiled/mrmime/package.json +0 -1
- package/compiled/picocolors/index.d.ts +0 -55
- package/compiled/picocolors/index.js +0 -108
- package/compiled/picocolors/license +0 -15
- package/compiled/picocolors/package.json +0 -1
- package/compiled/rspack-manifest-plugin/index.d.ts +0 -48
- package/compiled/rspack-manifest-plugin/index.js +0 -409
- package/compiled/rspack-manifest-plugin/license +0 -21
- package/compiled/rspack-manifest-plugin/package.json +0 -1
- package/compiled/sirv/index.d.ts +0 -1
- package/compiled/sirv/index.js +0 -274
- package/compiled/sirv/package.json +0 -1
- package/compiled/tinyglobby/index.d.ts +0 -46
- package/compiled/tinyglobby/index.js +0 -2664
- package/compiled/tinyglobby/license +0 -21
- package/compiled/tinyglobby/package.json +0 -1
- package/compiled/webpack-bundle-analyzer/index.d.ts +0 -160
- package/compiled/webpack-bundle-analyzer/index.js +0 -23
- package/compiled/webpack-bundle-analyzer/license +0 -20
- package/compiled/webpack-bundle-analyzer/package.json +0 -1
- package/compiled/webpack-bundle-analyzer/public/viewer.js +0 -16
- package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +0 -10
- package/dist/2~open.cjs +0 -436
- package/dist/2~range-parser.cjs +0 -52
- package/dist/2~range-parser.cjs.LICENSE.txt +0 -6
- package/dist/index.cjs +0 -9442
- package/dist/index.cjs.LICENSE.txt +0 -26
- package/dist-types/plugins/bundleAnalyzer.d.ts +0 -2
- package/dist-types/plugins/performance.d.ts +0 -5
- package/dist-types/provider/helpers.d.ts +0 -12
- package/dist-types/provider/provider.d.ts +0 -2
- /package/dist/{0~range-parser.js.LICENSE.txt → range-parser.js.LICENSE.txt} +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
in the Software without restriction, including without limitation the rights
|
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in
|
|
11
|
-
all copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@jridgewell/trace-mapping","author":"Justin Ridgewell <justin@ridgewell.name>","version":"0.3.31","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as http from 'http';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Create a new connect server.
|
|
6
|
-
*/
|
|
7
|
-
declare function createServer(): createServer.Server;
|
|
8
|
-
|
|
9
|
-
declare namespace createServer {
|
|
10
|
-
export type ServerHandle = HandleFunction | http.Server;
|
|
11
|
-
|
|
12
|
-
export class IncomingMessage extends http.IncomingMessage {
|
|
13
|
-
originalUrl?: http.IncomingMessage["url"] | undefined;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type NextFunction = (err?: any) => void;
|
|
17
|
-
|
|
18
|
-
export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void;
|
|
19
|
-
export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
|
|
20
|
-
export type ErrorHandleFunction = (
|
|
21
|
-
err: any,
|
|
22
|
-
req: IncomingMessage,
|
|
23
|
-
res: http.ServerResponse,
|
|
24
|
-
next: NextFunction,
|
|
25
|
-
) => void;
|
|
26
|
-
export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
|
|
27
|
-
|
|
28
|
-
export interface ServerStackItem {
|
|
29
|
-
route: string;
|
|
30
|
-
handle: ServerHandle;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface Server extends NodeJS.EventEmitter {
|
|
34
|
-
(req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void;
|
|
35
|
-
|
|
36
|
-
route: string;
|
|
37
|
-
stack: ServerStackItem[];
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Utilize the given middleware `handle` to the given `route`,
|
|
41
|
-
* defaulting to _/_. This "route" is the mount-point for the
|
|
42
|
-
* middleware, when given a value other than _/_ the middleware
|
|
43
|
-
* is only effective when that segment is present in the request's
|
|
44
|
-
* pathname.
|
|
45
|
-
*
|
|
46
|
-
* For example if we were to mount a function at _/admin_, it would
|
|
47
|
-
* be invoked on _/admin_, and _/admin/settings_, however it would
|
|
48
|
-
* not be invoked for _/_, or _/posts_.
|
|
49
|
-
*/
|
|
50
|
-
use(fn: NextHandleFunction): Server;
|
|
51
|
-
use(fn: HandleFunction): Server;
|
|
52
|
-
use(route: string, fn: NextHandleFunction): Server;
|
|
53
|
-
use(route: string, fn: HandleFunction): Server;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Handle server requests, punting them down
|
|
57
|
-
* the middleware stack.
|
|
58
|
-
*/
|
|
59
|
-
handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Listen for connections.
|
|
63
|
-
*
|
|
64
|
-
* This method takes the same arguments
|
|
65
|
-
* as node's `http.Server#listen()`.
|
|
66
|
-
*
|
|
67
|
-
* HTTP and HTTPS:
|
|
68
|
-
*
|
|
69
|
-
* If you run your application both as HTTP
|
|
70
|
-
* and HTTPS you may wrap them individually,
|
|
71
|
-
* since your Connect "server" is really just
|
|
72
|
-
* a JavaScript `Function`.
|
|
73
|
-
*
|
|
74
|
-
* var connect = require('connect')
|
|
75
|
-
* , http = require('http')
|
|
76
|
-
* , https = require('https');
|
|
77
|
-
*
|
|
78
|
-
* var app = connect();
|
|
79
|
-
*
|
|
80
|
-
* http.createServer(app).listen(80);
|
|
81
|
-
* https.createServer(options, app).listen(443);
|
|
82
|
-
*/
|
|
83
|
-
listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server;
|
|
84
|
-
listen(port: number, hostname?: string, callback?: Function): http.Server;
|
|
85
|
-
listen(path: string, callback?: Function): http.Server;
|
|
86
|
-
listen(handle: any, listeningListener?: Function): http.Server;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { createServer as default };
|