@rsbuild/core 2.0.9 → 2.0.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.
@@ -1,8 +1,8 @@
1
1
  import { __webpack_require__ } from "./1~rslib-runtime.js";
2
2
  import "./756.js";
3
3
  __webpack_require__.add({
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?aeb1"), launch = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js");
4
+ "../../node_modules/.pnpm/launch-editor-middleware@2.14.0/node_modules/launch-editor-middleware/index.js" (module, __unused_rspack_exports, __webpack_require__) {
5
+ let path = __webpack_require__("path?aeb1"), launch = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/index.js");
6
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) {
7
7
  let url;
8
8
  try {
@@ -16,7 +16,7 @@ __webpack_require__.add({
16
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.'));
17
17
  });
18
18
  },
19
- "../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
19
+ "../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/editor-info/linux.js" (module) {
20
20
  module.exports = {
21
21
  atom: 'atom',
22
22
  Brackets: 'brackets',
@@ -48,7 +48,7 @@ __webpack_require__.add({
48
48
  zed: 'zed'
49
49
  };
50
50
  },
51
- "../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js" (module) {
51
+ "../../node_modules/.pnpm/launch-editor@2.14.0/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',
@@ -81,7 +81,7 @@ __webpack_require__.add({
81
81
  '/Applications/Zed.app/Contents/MacOS/zed': 'zed'
82
82
  };
83
83
  },
84
- "../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js" (module) {
84
+ "../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/editor-info/windows.js" (module) {
85
85
  module.exports = [
86
86
  'Brackets.exe',
87
87
  'Code.exe',
@@ -112,7 +112,7 @@ __webpack_require__.add({
112
112
  'Antigravity.exe'
113
113
  ];
114
114
  },
115
- "../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
115
+ "../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
116
116
  let path = __webpack_require__("path?aeb1");
117
117
  module.exports = function getArgumentsForPosition(editor, fileName, lineNumber, columnNumber = 1) {
118
118
  switch(path.basename(editor).replace(/\.(exe|cmd|bat)$/i, '')){
@@ -209,8 +209,8 @@ __webpack_require__.add({
209
209
  ];
210
210
  };
211
211
  },
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?aeb1"), 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");
212
+ "../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/guess.js" (module, __unused_rspack_exports, __webpack_require__) {
213
+ let path = __webpack_require__("path?aeb1"), shellQuote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/index.js"), childProcess = __webpack_require__("child_process"), COMMON_EDITORS_MACOS = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/editor-info/macos.js"), COMMON_EDITORS_LINUX = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/editor-info/linux.js"), COMMON_EDITORS_WIN = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/editor-info/windows.js");
214
214
  module.exports = function guessEditor(specifiedEditor) {
215
215
  if (specifiedEditor) return shellQuote.parse(specifiedEditor);
216
216
  if (process.env.LAUNCH_EDITOR) return [
@@ -283,8 +283,8 @@ __webpack_require__.add({
283
283
  ];
284
284
  };
285
285
  },
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?8b28"), os = __webpack_require__("os"), path = __webpack_require__("path?aeb1"), 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");
286
+ "../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
287
+ let fs = __webpack_require__("fs?8b28"), os = __webpack_require__("os"), path = __webpack_require__("path?aeb1"), 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.14.0/node_modules/launch-editor/guess.js"), getArgumentsForPosition = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.14.0/node_modules/launch-editor/get-args.js");
288
288
  function wrapErrorCallback(cb) {
289
289
  return (fileName, errorMessage)=>{
290
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);
@@ -309,7 +309,7 @@ __webpack_require__.add({
309
309
  columnNumber: match && match[3]
310
310
  };
311
311
  }
312
- let _childProcess = null;
312
+ let currentChildProcess = null;
313
313
  module.exports = function launchEditor(file, specifiedEditor, onErrorCallback) {
314
314
  let parsed = parseFile(file), { fileName } = parsed, { lineNumber, columnNumber } = parsed;
315
315
  if (!fs.existsSync(fileName)) return;
@@ -320,7 +320,7 @@ __webpack_require__.add({
320
320
  let extraArgs = getArgumentsForPosition(editor, fileName, lineNumber, columnNumber);
321
321
  args.push.apply(args, extraArgs);
322
322
  } else args.push(fileName);
323
- if (_childProcess && isTerminalEditor(editor) && _childProcess.kill('SIGKILL'), 'win32' === process.platform) {
323
+ if (currentChildProcess && isTerminalEditor(editor) && currentChildProcess.kill('SIGKILL'), 'win32' === process.platform) {
324
324
  function escapeCmdArgs(cmdArgs) {
325
325
  return cmdArgs.replace(/([&|<>,;=^])/g, '^$1');
326
326
  }
@@ -331,16 +331,16 @@ __webpack_require__.add({
331
331
  editor,
332
332
  ...args.map(escapeCmdArgs)
333
333
  ].map(doubleQuoteIfNeeded).join(' ');
334
- _childProcess = childProcess.exec(launchCommand, {
334
+ currentChildProcess = childProcess.exec(launchCommand, {
335
335
  stdio: 'inherit',
336
336
  shell: !0
337
337
  });
338
- } else _childProcess = childProcess.spawn(editor, args, {
338
+ } else currentChildProcess = childProcess.spawn(editor, args, {
339
339
  stdio: 'inherit'
340
340
  });
341
- _childProcess.on('exit', function(errorCode) {
342
- _childProcess = null, errorCode && onErrorCallback(fileName, '(code ' + errorCode + ')');
343
- }), _childProcess.on('error', function(error) {
341
+ currentChildProcess.on('exit', function(errorCode) {
342
+ currentChildProcess = null, errorCode && onErrorCallback(fileName, '(code ' + errorCode + ')');
343
+ }), currentChildProcess.on('error', function(error) {
344
344
  let { code, message } = error;
345
345
  'ENOENT' === code && (message = `${message} ('${editor}' command does not exist in 'PATH')`), onErrorCallback(fileName, message);
346
346
  });
@@ -404,10 +404,10 @@ __webpack_require__.add({
404
404
  };
405
405
  module.exports = createColors(), module.exports.createColors = createColors;
406
406
  },
407
- "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
408
- __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");
407
+ "../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
408
+ __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/quote.js"), exports.parse = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/parse.js");
409
409
  },
410
- "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js" (module) {
410
+ "../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/parse.js" (module) {
411
411
  for(var CONTROL = "(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])", controlRE = RegExp('^' + CONTROL + '$'), META = '|&;()<> \\t', hash = /^#$/, TOKEN = '', i = 0; i < 4; i++)TOKEN += (0x100000000 * Math.random()).toString(16);
412
412
  var startsWithToken = RegExp('^' + TOKEN);
413
413
  function matchAll(s, r) {
@@ -490,11 +490,46 @@ __webpack_require__.add({
490
490
  }, []);
491
491
  };
492
492
  },
493
- "../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js" (module) {
493
+ "../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/quote.js" (module) {
494
+ var OPS = [
495
+ '||',
496
+ '&&',
497
+ ';;',
498
+ '|&',
499
+ '<(',
500
+ '<<<',
501
+ '>>',
502
+ '>&',
503
+ '<&',
504
+ '&',
505
+ ';',
506
+ '(',
507
+ ')',
508
+ '|',
509
+ '<',
510
+ '>'
511
+ ], LINE_TERMINATORS = /[\n\r\u2028\u2029]/, GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|]/g;
494
512
  module.exports = function quote(xs) {
495
513
  return xs.map(function(s) {
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');
514
+ if ('' === s) return '\'\'';
515
+ if (s && 'object' == typeof s) {
516
+ if ('glob' === s.op) {
517
+ if ('string' != typeof s.pattern) throw TypeError('glob token requires a string `pattern`');
518
+ if (LINE_TERMINATORS.test(s.pattern)) throw TypeError('glob `pattern` must not contain line terminators');
519
+ return s.pattern.replace(GLOB_SHELL_SPECIAL, '\\$&');
520
+ }
521
+ if ('string' == typeof s.op) {
522
+ if (0 > OPS.indexOf(s.op)) throw TypeError('invalid `op` value: ' + JSON.stringify(s.op));
523
+ return s.op.replace(/[\s\S]/g, '\\$&');
524
+ }
525
+ if ('string' == typeof s.comment) {
526
+ if (LINE_TERMINATORS.test(s.comment)) throw TypeError('`comment` must not contain line terminators');
527
+ return '#' + s.comment;
528
+ }
529
+ throw TypeError('unrecognized object token shape');
530
+ }
531
+ return /["\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');
497
532
  }).join(' ');
498
533
  };
499
534
  }
500
- }), __webpack_require__("../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js");
535
+ }), __webpack_require__("../../node_modules/.pnpm/launch-editor-middleware@2.14.0/node_modules/launch-editor-middleware/index.js");
@@ -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.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/helpers.js" (__unused_rspack_module, exports, __webpack_require__) {
4
+ "../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.6/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.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/hooks.js" (__unused_rspack_module, exports, __webpack_require__) {
64
+ "../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.6/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.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/helpers.js"), compilerHookMap = new WeakMap(), getCompilerHooks = (compiler)=>{
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.1_@rspack+core@2.0.6/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.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/index.js" (__unused_rspack_module, exports, __webpack_require__) {
115
+ "../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.6/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.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/hooks.js"), emitCountMap = new Map(), defaults = {
117
+ let node_path_1 = __webpack_require__("node:path?435f"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.6/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',
@@ -683,5 +683,5 @@ __webpack_require__.add({
683
683
  });
684
684
  }
685
685
  });
686
- var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.5/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;
686
+ var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.6/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;
687
687
  export { RspackManifestPlugin };