@rsbuild/core 2.0.0-beta.1 → 2.0.0-beta.11
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/chokidar/index.d.ts +197 -29
- package/compiled/chokidar/package.json +1 -1
- package/compiled/connect-next/index.d.ts +56 -0
- package/compiled/connect-next/license +26 -0
- package/compiled/connect-next/package.json +1 -0
- package/compiled/cors/index.d.ts +56 -0
- package/compiled/cors/license +22 -0
- package/compiled/cors/package.json +1 -0
- package/compiled/css-loader/index.js +2 -2
- package/compiled/css-loader/package.json +1 -1
- package/compiled/html-rspack-plugin/index.js +29 -74
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/jiti/LICENSE +21 -0
- package/compiled/jiti/README.md +243 -0
- package/compiled/jiti/dist/babel.cjs +46699 -0
- package/compiled/jiti/dist/jiti.cjs +4842 -0
- package/compiled/jiti/lib/jiti-cli.mjs +19 -0
- package/compiled/jiti/lib/jiti-hooks.mjs +89 -0
- package/compiled/jiti/lib/jiti-native.mjs +76 -0
- package/compiled/jiti/lib/jiti-register.d.mts +1 -0
- package/compiled/jiti/lib/jiti-register.mjs +2 -0
- package/compiled/jiti/lib/jiti.cjs +24 -0
- package/compiled/jiti/lib/jiti.d.cts +8 -0
- package/compiled/jiti/lib/jiti.d.mts +8 -0
- package/compiled/jiti/lib/jiti.mjs +23 -0
- package/compiled/jiti/lib/types.d.ts +363 -0
- package/compiled/jiti/package.json +133 -0
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss/lib/at-rule.d.ts +1 -1
- package/compiled/postcss/lib/comment.d.ts +1 -1
- package/compiled/postcss/lib/container.d.ts +1 -1
- package/compiled/postcss/lib/css-syntax-error.d.ts +1 -1
- package/compiled/postcss/lib/declaration.d.ts +1 -1
- package/compiled/postcss/lib/document.d.ts +1 -1
- package/compiled/postcss/lib/input.d.ts +1 -1
- package/compiled/postcss/lib/lazy-result.d.ts +1 -1
- package/compiled/postcss/lib/no-work-result.d.ts +1 -1
- package/compiled/postcss/lib/node.d.ts +1 -1
- package/compiled/postcss/lib/previous-map.d.ts +1 -1
- package/compiled/postcss/lib/processor.d.ts +1 -1
- package/compiled/postcss/lib/result.d.ts +1 -1
- package/compiled/postcss/lib/root.d.ts +1 -1
- package/compiled/postcss/lib/rule.d.ts +1 -1
- package/compiled/postcss/lib/stringifier.d.ts +1 -1
- package/compiled/postcss/lib/warning.d.ts +1 -1
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +10 -9
- package/compiled/postcss-loader/package.json +1 -1
- package/compiled/rslog/index.d.ts +34 -3
- package/compiled/rslog/package.json +1 -1
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +0 -5
- package/compiled/rspack-manifest-plugin/index.d.ts +48 -0
- package/compiled/rspack-manifest-plugin/license +21 -0
- package/compiled/rspack-manifest-plugin/package.json +1 -0
- package/compiled/style-loader/index.js +37 -94
- package/compiled/style-loader/package.json +1 -1
- package/dist/{rslib-runtime.js → 1~rslib-runtime.js} +4 -4
- package/dist/{131.js → 552.js} +1753 -1573
- package/dist/chokidar.js +60 -57
- package/dist/client/hmr.js +3 -3
- package/dist/client/overlay.js +2 -2
- package/dist/connect-next.js +264 -0
- package/dist/{connect.js.LICENSE.txt → connect-next.js.LICENSE.txt} +3 -13
- package/dist/cors.js +3 -3
- package/dist/debug.js +503 -0
- package/dist/http-proxy-middleware.js +2947 -0
- package/dist/http-proxy-middleware.js.LICENSE.txt +69 -0
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +81 -20
- package/dist/manifest-plugin.js +12 -19
- package/dist/memfs.js +223 -781
- package/dist/open.js +32 -28
- package/dist/range-parser.js +3 -3
- package/dist/remapping.js +2 -2
- package/dist/sirv.js +18 -18
- package/dist/tinyglobby.js +115 -70
- package/dist/transformLoader.mjs +38 -1
- package/dist/transformRawLoader.mjs +1 -1
- package/dist/ws.js +1513 -0
- package/dist-types/createContext.d.ts +3 -2
- package/dist-types/helpers/format.d.ts +2 -1
- package/dist-types/helpers/fs.d.ts +2 -1
- package/dist-types/helpers/index.d.ts +1 -1
- package/dist-types/helpers/stats.d.ts +4 -3
- package/dist-types/helpers/vendors.d.ts +0 -2
- package/dist-types/hooks.d.ts +3 -3
- package/dist-types/index.d.ts +4 -3
- package/dist-types/initPlugins.d.ts +2 -1
- package/dist-types/logger.d.ts +9 -3
- package/dist-types/pluginManager.d.ts +2 -1
- package/dist-types/restart.d.ts +4 -2
- package/dist-types/server/assets-middleware/index.d.ts +3 -2
- package/dist-types/server/assets-middleware/setupWriteToDisk.d.ts +2 -1
- package/dist-types/server/cliShortcuts.d.ts +4 -1
- package/dist-types/server/devMiddlewares.d.ts +4 -6
- package/dist-types/server/devServer.d.ts +8 -42
- package/dist-types/server/helper.d.ts +50 -16
- package/dist-types/server/historyApiFallback.d.ts +2 -1
- package/dist-types/server/middlewares.d.ts +5 -3
- package/dist-types/server/open.d.ts +4 -2
- package/dist-types/server/previewServer.d.ts +4 -0
- package/dist-types/server/proxy.d.ts +3 -2
- package/dist-types/server/runner/asModule.d.ts +1 -1
- package/dist-types/server/serverSetup.d.ts +2 -0
- package/dist-types/server/socketServer.d.ts +4 -1
- package/dist-types/server/watchFiles.d.ts +1 -1
- package/dist-types/types/config.d.ts +110 -17
- package/dist-types/types/context.d.ts +3 -0
- package/dist-types/types/hooks.d.ts +17 -15
- package/dist-types/types/plugin.d.ts +14 -11
- package/dist-types/types/rsbuild.d.ts +11 -4
- package/dist-types/types/thirdParty.d.ts +15 -6
- package/package.json +25 -28
- package/types.d.ts +1 -1
- package/compiled/chokidar/handler.d.ts +0 -90
- package/compiled/http-proxy-middleware/index.js +0 -6132
- package/compiled/ws/index.d.ts +0 -437
- package/compiled/ws/index.js +0 -3166
- package/compiled/ws/license +0 -20
- package/compiled/ws/package.json +0 -1
- package/dist/397.js +0 -11
- package/dist/7.js +0 -1
- package/dist/743.js +0 -7
- package/dist/88.js +0 -40
- package/dist/connect.js +0 -581
- package/dist-types/server/prodServer.d.ts +0 -24
- /package/compiled/html-rspack-plugin/{loader.js → htmlLoader.js} +0 -0
- /package/dist/{131.js.LICENSE.txt → 552.js.LICENSE.txt} +0 -0
- /package/dist/client/{59.js → 797.js} +0 -0
- /package/dist/{710.js → mrmime.js} +0 -0
- /package/dist/{31.js → trace-mapping.js} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Array of passes.
|
|
3
|
+
*
|
|
4
|
+
* A `pass` is just a function that is executed on `req, res, options`
|
|
5
|
+
* so that you can easily add new checks while still keeping the base
|
|
6
|
+
* flexible.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
* Array of passes.
|
|
11
|
+
*
|
|
12
|
+
* A `pass` is just a function that is executed on `req, socket, options`
|
|
13
|
+
* so that you can easily add new checks while still keeping the base
|
|
14
|
+
* flexible.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
* Caron dimonio, con occhi di bragia
|
|
19
|
+
* loro accennando, tutte le raccoglie;
|
|
20
|
+
* batte col remo qualunque s’adagia
|
|
21
|
+
*
|
|
22
|
+
* Charon the demon, with the eyes of glede,
|
|
23
|
+
* Beckoning to them, collects them all together,
|
|
24
|
+
* Beats with his oar whoever lags behind
|
|
25
|
+
*
|
|
26
|
+
* Dante - The Divine Comedy (Canto III)
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/*!
|
|
30
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/*!
|
|
37
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
40
|
+
* Licensed under the MIT License.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/*!
|
|
44
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
47
|
+
* Released under the MIT License.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/*!
|
|
51
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
54
|
+
* Released under the MIT License.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
61
|
+
* Released under the MIT License.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/*!
|
|
65
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
68
|
+
* Released under the MIT License.
|
|
69
|
+
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack, runCLI, version } from "./
|
|
1
|
+
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createLogger, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack, runCLI, version } from "./552.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "./131.js";
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
4
3
|
__webpack_require__.add({
|
|
5
|
-
"../../node_modules/.pnpm/launch-editor-middleware@2.
|
|
6
|
-
let path = __webpack_require__("path"), launch = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.
|
|
4
|
+
"../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
5
|
+
let path = __webpack_require__("path?37f5"), launch = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js");
|
|
7
6
|
module.exports = (specifiedEditor, srcRoot, onErrorCallback)=>('function' == typeof specifiedEditor && (onErrorCallback = specifiedEditor, specifiedEditor = void 0), 'function' == typeof srcRoot && (onErrorCallback = srcRoot, srcRoot = void 0), srcRoot = srcRoot || process.cwd(), function launchEditorMiddleware(req, res) {
|
|
8
7
|
let url;
|
|
9
8
|
try {
|
|
@@ -17,7 +16,7 @@ __webpack_require__.add({
|
|
|
17
16
|
file ? (launch(file.startsWith('file://') ? file : path.resolve(srcRoot, file), specifiedEditor, onErrorCallback), res.end()) : (res.statusCode = 500, res.end('launch-editor-middleware: required query param "file" is missing.'));
|
|
18
17
|
});
|
|
19
18
|
},
|
|
20
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
19
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
|
|
21
20
|
module.exports = {
|
|
22
21
|
atom: 'atom',
|
|
23
22
|
Brackets: 'brackets',
|
|
@@ -27,6 +26,7 @@ __webpack_require__.add({
|
|
|
27
26
|
codium: 'codium',
|
|
28
27
|
cursor: 'cursor',
|
|
29
28
|
trae: 'trae',
|
|
29
|
+
antigravity: 'antigravity',
|
|
30
30
|
emacs: 'emacs',
|
|
31
31
|
gvim: 'gvim',
|
|
32
32
|
idea: 'idea',
|
|
@@ -48,7 +48,7 @@ __webpack_require__.add({
|
|
|
48
48
|
zed: 'zed'
|
|
49
49
|
};
|
|
50
50
|
},
|
|
51
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
51
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js" (module) {
|
|
52
52
|
module.exports = {
|
|
53
53
|
'/Applications/Atom.app/Contents/MacOS/Atom': 'atom',
|
|
54
54
|
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
|
|
@@ -57,11 +57,14 @@ __webpack_require__.add({
|
|
|
57
57
|
'/Applications/Sublime Text.app/Contents/MacOS/sublime_text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
|
|
58
58
|
'/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2': '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl',
|
|
59
59
|
'/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl',
|
|
60
|
+
'/Applications/Visual Studio Code.app/Contents/MacOS/Code': 'code',
|
|
60
61
|
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',
|
|
62
|
+
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders': 'code-insiders',
|
|
61
63
|
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron': 'code-insiders',
|
|
62
64
|
'/Applications/VSCodium.app/Contents/MacOS/Electron': 'codium',
|
|
63
65
|
'/Applications/Cursor.app/Contents/MacOS/Cursor': 'cursor',
|
|
64
66
|
'/Applications/Trae.app/Contents/MacOS/Electron': 'trae',
|
|
67
|
+
'/Applications/Antigravity.app/Contents/MacOS/Electron': 'antigravity',
|
|
65
68
|
'/Applications/AppCode.app/Contents/MacOS/appcode': '/Applications/AppCode.app/Contents/MacOS/appcode',
|
|
66
69
|
'/Applications/CLion.app/Contents/MacOS/clion': '/Applications/CLion.app/Contents/MacOS/clion',
|
|
67
70
|
'/Applications/IntelliJ IDEA.app/Contents/MacOS/idea': '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea',
|
|
@@ -78,7 +81,7 @@ __webpack_require__.add({
|
|
|
78
81
|
'/Applications/Zed.app/Contents/MacOS/zed': 'zed'
|
|
79
82
|
};
|
|
80
83
|
},
|
|
81
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
84
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js" (module) {
|
|
82
85
|
module.exports = [
|
|
83
86
|
'Brackets.exe',
|
|
84
87
|
'Code.exe',
|
|
@@ -104,11 +107,13 @@ __webpack_require__.add({
|
|
|
104
107
|
'goland64.exe',
|
|
105
108
|
'rider.exe',
|
|
106
109
|
'rider64.exe',
|
|
107
|
-
'
|
|
110
|
+
'Trae.exe',
|
|
111
|
+
'zed.exe',
|
|
112
|
+
'Antigravity.exe'
|
|
108
113
|
];
|
|
109
114
|
},
|
|
110
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
111
|
-
let path = __webpack_require__("path");
|
|
115
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
116
|
+
let path = __webpack_require__("path?37f5");
|
|
112
117
|
module.exports = function getArgumentsForPosition(editor, fileName, lineNumber, columnNumber = 1) {
|
|
113
118
|
switch(path.basename(editor).replace(/\.(exe|cmd|bat)$/i, '')){
|
|
114
119
|
case 'atom':
|
|
@@ -161,6 +166,7 @@ __webpack_require__.add({
|
|
|
161
166
|
case 'Code - Insiders':
|
|
162
167
|
case 'codium':
|
|
163
168
|
case 'trae':
|
|
169
|
+
case 'antigravity':
|
|
164
170
|
case 'cursor':
|
|
165
171
|
case 'vscodium':
|
|
166
172
|
case 'VSCodium':
|
|
@@ -203,8 +209,8 @@ __webpack_require__.add({
|
|
|
203
209
|
];
|
|
204
210
|
};
|
|
205
211
|
},
|
|
206
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
207
|
-
let path = __webpack_require__("path"), shellQuote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js"), childProcess = __webpack_require__("child_process"), COMMON_EDITORS_MACOS = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.
|
|
212
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
213
|
+
let path = __webpack_require__("path?37f5"), shellQuote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js"), childProcess = __webpack_require__("child_process"), COMMON_EDITORS_MACOS = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js"), COMMON_EDITORS_LINUX = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js"), COMMON_EDITORS_WIN = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js");
|
|
208
214
|
module.exports = function guessEditor(specifiedEditor) {
|
|
209
215
|
if (specifiedEditor) return shellQuote.parse(specifiedEditor);
|
|
210
216
|
if (process.env.LAUNCH_EDITOR) return [
|
|
@@ -277,8 +283,8 @@ __webpack_require__.add({
|
|
|
277
283
|
];
|
|
278
284
|
};
|
|
279
285
|
},
|
|
280
|
-
"../../node_modules/.pnpm/launch-editor@2.
|
|
281
|
-
let fs = __webpack_require__("fs"), os = __webpack_require__("os"), path = __webpack_require__("path"), colors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"), childProcess = __webpack_require__("child_process"), guessEditor = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.
|
|
286
|
+
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
287
|
+
let fs = __webpack_require__("fs?cdbd"), os = __webpack_require__("os"), path = __webpack_require__("path?37f5"), colors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"), childProcess = __webpack_require__("child_process"), guessEditor = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js"), getArgumentsForPosition = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js");
|
|
282
288
|
function wrapErrorCallback(cb) {
|
|
283
289
|
return (fileName, errorMessage)=>{
|
|
284
290
|
console.log(), console.log(colors.red('Could not open ' + path.basename(fileName) + ' in the editor.')), errorMessage && ('.' !== errorMessage[errorMessage.length - 1] && (errorMessage += '.'), console.log(colors.red('The editor process exited with an error: ' + errorMessage))), console.log(), cb && cb(fileName, errorMessage);
|
|
@@ -295,7 +301,7 @@ __webpack_require__.add({
|
|
|
295
301
|
}
|
|
296
302
|
let positionRE = /:(\d+)(:(\d+))?$/;
|
|
297
303
|
function parseFile(file) {
|
|
298
|
-
file.startsWith('file://') && (file = __webpack_require__("url").fileURLToPath(file));
|
|
304
|
+
file.startsWith('file://') && (file = __webpack_require__("url?5f07").fileURLToPath(file));
|
|
299
305
|
let fileName = file.replace(positionRE, ''), match = file.match(positionRE);
|
|
300
306
|
return {
|
|
301
307
|
fileName,
|
|
@@ -340,6 +346,64 @@ __webpack_require__.add({
|
|
|
340
346
|
});
|
|
341
347
|
};
|
|
342
348
|
},
|
|
349
|
+
"../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
|
|
350
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {}, isColorSupported = !(env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI), formatter = (open, close, replace = open)=>(input)=>{
|
|
351
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
352
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
353
|
+
}, replaceClose = (string, close, replace, index)=>{
|
|
354
|
+
let result = "", cursor = 0;
|
|
355
|
+
do result += string.substring(cursor, index) + replace, cursor = index + close.length, index = string.indexOf(close, cursor);
|
|
356
|
+
while (~index);
|
|
357
|
+
return result + string.substring(cursor);
|
|
358
|
+
}, createColors = (enabled = isColorSupported)=>{
|
|
359
|
+
let f = enabled ? formatter : ()=>String;
|
|
360
|
+
return {
|
|
361
|
+
isColorSupported: enabled,
|
|
362
|
+
reset: f("\x1b[0m", "\x1b[0m"),
|
|
363
|
+
bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
364
|
+
dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
365
|
+
italic: f("\x1b[3m", "\x1b[23m"),
|
|
366
|
+
underline: f("\x1b[4m", "\x1b[24m"),
|
|
367
|
+
inverse: f("\x1b[7m", "\x1b[27m"),
|
|
368
|
+
hidden: f("\x1b[8m", "\x1b[28m"),
|
|
369
|
+
strikethrough: f("\x1b[9m", "\x1b[29m"),
|
|
370
|
+
black: f("\x1b[30m", "\x1b[39m"),
|
|
371
|
+
red: f("\x1b[31m", "\x1b[39m"),
|
|
372
|
+
green: f("\x1b[32m", "\x1b[39m"),
|
|
373
|
+
yellow: f("\x1b[33m", "\x1b[39m"),
|
|
374
|
+
blue: f("\x1b[34m", "\x1b[39m"),
|
|
375
|
+
magenta: f("\x1b[35m", "\x1b[39m"),
|
|
376
|
+
cyan: f("\x1b[36m", "\x1b[39m"),
|
|
377
|
+
white: f("\x1b[37m", "\x1b[39m"),
|
|
378
|
+
gray: f("\x1b[90m", "\x1b[39m"),
|
|
379
|
+
bgBlack: f("\x1b[40m", "\x1b[49m"),
|
|
380
|
+
bgRed: f("\x1b[41m", "\x1b[49m"),
|
|
381
|
+
bgGreen: f("\x1b[42m", "\x1b[49m"),
|
|
382
|
+
bgYellow: f("\x1b[43m", "\x1b[49m"),
|
|
383
|
+
bgBlue: f("\x1b[44m", "\x1b[49m"),
|
|
384
|
+
bgMagenta: f("\x1b[45m", "\x1b[49m"),
|
|
385
|
+
bgCyan: f("\x1b[46m", "\x1b[49m"),
|
|
386
|
+
bgWhite: f("\x1b[47m", "\x1b[49m"),
|
|
387
|
+
blackBright: f("\x1b[90m", "\x1b[39m"),
|
|
388
|
+
redBright: f("\x1b[91m", "\x1b[39m"),
|
|
389
|
+
greenBright: f("\x1b[92m", "\x1b[39m"),
|
|
390
|
+
yellowBright: f("\x1b[93m", "\x1b[39m"),
|
|
391
|
+
blueBright: f("\x1b[94m", "\x1b[39m"),
|
|
392
|
+
magentaBright: f("\x1b[95m", "\x1b[39m"),
|
|
393
|
+
cyanBright: f("\x1b[96m", "\x1b[39m"),
|
|
394
|
+
whiteBright: f("\x1b[97m", "\x1b[39m"),
|
|
395
|
+
bgBlackBright: f("\x1b[100m", "\x1b[49m"),
|
|
396
|
+
bgRedBright: f("\x1b[101m", "\x1b[49m"),
|
|
397
|
+
bgGreenBright: f("\x1b[102m", "\x1b[49m"),
|
|
398
|
+
bgYellowBright: f("\x1b[103m", "\x1b[49m"),
|
|
399
|
+
bgBlueBright: f("\x1b[104m", "\x1b[49m"),
|
|
400
|
+
bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
|
|
401
|
+
bgCyanBright: f("\x1b[106m", "\x1b[49m"),
|
|
402
|
+
bgWhiteBright: f("\x1b[107m", "\x1b[49m")
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
module.exports = createColors(), module.exports.createColors = createColors;
|
|
406
|
+
},
|
|
343
407
|
"../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
344
408
|
exports.quote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js"), exports.parse = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js");
|
|
345
409
|
},
|
|
@@ -432,8 +496,5 @@ __webpack_require__.add({
|
|
|
432
496
|
return '' === s ? '\'\'' : s && 'object' == typeof s ? s.op.replace(/(.)/g, '\\$1') : /["\s\\]/.test(s) && !/'/.test(s) ? "'" + s.replace(/(['])/g, '\\$1') + "'" : /["'\s]/.test(s) ? '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"' : String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, '$1\\$2');
|
|
433
497
|
}).join(' ');
|
|
434
498
|
};
|
|
435
|
-
},
|
|
436
|
-
child_process (module) {
|
|
437
|
-
module.exports = __rspack_external_child_process;
|
|
438
499
|
}
|
|
439
|
-
});
|
|
500
|
+
}), __webpack_require__("../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js");
|
package/dist/manifest-plugin.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
|
-
import "./
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}), exports.transformFiles = exports.reduceChunk = exports.reduceAssets = exports.generateManifest = void 0;
|
|
8
|
-
let node_path_1 = __webpack_require__("node:path");
|
|
4
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/helpers.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
5
|
+
exports.transformFiles = exports.reduceChunk = exports.reduceAssets = exports.generateManifest = void 0;
|
|
6
|
+
let node_path_1 = __webpack_require__("node:path?815c");
|
|
9
7
|
exports.generateManifest = (compilation, files, { generate, seed = {} })=>generate ? generate(seed, files, Array.from(compilation.entrypoints.entries()).reduce((e, [name, entrypoint])=>Object.assign(e, {
|
|
10
8
|
[name]: entrypoint.getFiles()
|
|
11
9
|
}), {}), {
|
|
@@ -63,11 +61,9 @@ __webpack_require__.add({
|
|
|
63
61
|
'sort'
|
|
64
62
|
].filter((fname)=>!!options[fname]).reduce((prev, fname)=>prev[fname](options[fname]), files).map(standardizeFilePaths);
|
|
65
63
|
},
|
|
66
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}), exports.normalModuleLoaderHook = exports.getCompilerHooks = exports.emitHook = exports.beforeRunHook = void 0;
|
|
70
|
-
let node_fs_1 = __webpack_require__("node:fs"), node_path_1 = __webpack_require__("node:path"), 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.1_@rspack+core@2.0.0-alpha.1_@module-federation+runtime-tools@0.23.0_@swc+helpers@0.5.18_/node_modules/rspack-manifest-plugin/dist/helpers.js"), compilerHookMap = new WeakMap(), getCompilerHooks = (compiler)=>{
|
|
64
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/hooks.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
65
|
+
exports.getCompilerHooks = exports.emitHook = exports.beforeRunHook = void 0;
|
|
66
|
+
let node_fs_1 = __webpack_require__("node:fs?31c0"), node_path_1 = __webpack_require__("node:path?815c"), 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.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/helpers.js"), compilerHookMap = new WeakMap(), getCompilerHooks = (compiler)=>{
|
|
71
67
|
let hooks = compilerHookMap.get(compiler);
|
|
72
68
|
return void 0 === hooks && (hooks = {
|
|
73
69
|
afterEmit: new lite_tapable_1.SyncWaterfallHook([
|
|
@@ -114,16 +110,11 @@ __webpack_require__.add({
|
|
|
114
110
|
}), (0, node_fs_1.writeFileSync)(manifestFileName, output));
|
|
115
111
|
}
|
|
116
112
|
getCompilerHooks(compiler).afterEmit.call(manifest);
|
|
117
|
-
}, exports.normalModuleLoaderHook = ({ moduleAssets }, context, module)=>{
|
|
118
|
-
let { emitFile } = context;
|
|
119
|
-
context.emitFile = (file, content, sourceMap)=>(module.userRequest && !moduleAssets[file] && Object.assign(moduleAssets, {
|
|
120
|
-
[file]: (0, node_path_1.join)((0, node_path_1.dirname)(file), (0, node_path_1.basename)(module.userRequest))
|
|
121
|
-
}), emitFile.call(module, file, content, sourceMap));
|
|
122
113
|
};
|
|
123
114
|
},
|
|
124
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-
|
|
115
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
125
116
|
exports.RspackManifestPlugin = void 0;
|
|
126
|
-
let node_path_1 = __webpack_require__("node:path"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-
|
|
117
|
+
let node_path_1 = __webpack_require__("node:path?815c"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/hooks.js"), emitCountMap = new Map(), defaults = {
|
|
127
118
|
assetHookStage: 1 / 0,
|
|
128
119
|
basePath: '',
|
|
129
120
|
fileName: 'manifest.json',
|
|
@@ -692,3 +683,5 @@ __webpack_require__.add({
|
|
|
692
683
|
});
|
|
693
684
|
}
|
|
694
685
|
});
|
|
686
|
+
var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;
|
|
687
|
+
export { RspackManifestPlugin };
|