@rspress/core 2.0.21 → 2.0.22

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.
Files changed (153) hide show
  1. package/dist/cli/index.js +12 -13
  2. package/dist/config/loadConfigFile.d.ts +3 -4
  3. package/dist/config/loadConfigFile.js +13 -17
  4. package/dist/{7748~0.js → d~0.js} +0 -2
  5. package/dist/eject-theme/components/Llms/LlmsHint.test.tsx +8 -0
  6. package/dist/eject-theme/components/Llms/LlmsHint.tsx +11 -3
  7. package/dist/eject-theme/components/Nav/NavMenu.scss +4 -0
  8. package/dist/eject-theme/components/Nav/NavMenu.tsx +20 -13
  9. package/dist/eject-theme/components/Nav/index.tsx +30 -4
  10. package/dist/eject-theme/components/NavHamburger/index.tsx +11 -3
  11. package/dist/eject-theme/components/NavList/context.ts +3 -0
  12. package/dist/eject-theme/components/NavList/index.tsx +24 -0
  13. package/dist/eject-theme/components/NavScreen/NavScreenMenu.test.tsx +59 -0
  14. package/dist/eject-theme/components/NavScreen/NavScreenMenu.tsx +43 -2
  15. package/dist/eject-theme/components/NavScreen/index.scss +0 -6
  16. package/dist/eject-theme/components/NavScreen/index.tsx +20 -3
  17. package/dist/eject-theme/components/ReadPercent/useReadPercent.ts +1 -1
  18. package/dist/eject-theme/components/Search/SearchButton.scss +1 -0
  19. package/dist/eject-theme/components/Search/SearchPanel.scss +51 -12
  20. package/dist/eject-theme/components/Search/SearchPanel.tsx +54 -212
  21. package/dist/eject-theme/components/Search/logic/providers/LocalProvider.ts +38 -16
  22. package/dist/eject-theme/components/Search/useSearchPanel.ts +216 -0
  23. package/dist/eject-theme/components/Steps/index.scss +1 -1
  24. package/dist/eject-theme/components/SwitchAppearance/getClipPath.test.ts +15 -0
  25. package/dist/eject-theme/components/SwitchAppearance/getClipPath.ts +26 -0
  26. package/dist/eject-theme/components/SwitchAppearance/index.tsx +22 -26
  27. package/dist/eject-theme/components/Tabs/index.tsx +14 -14
  28. package/dist/index.js +1 -1
  29. package/dist/node/PluginDriver.d.ts +1 -1
  30. package/dist/node/PluginDriver.js +5 -9
  31. package/dist/node/auto-nav-sidebar/index.js +1 -1
  32. package/dist/node/auto-nav-sidebar/locales.js +1 -1
  33. package/dist/node/auto-nav-sidebar/normalize.js +6 -6
  34. package/dist/node/auto-nav-sidebar/utils.js +1 -1
  35. package/dist/node/auto-nav-sidebar/walk.js +1 -1
  36. package/dist/node/build.d.ts +3 -2
  37. package/dist/node/build.js +9 -3
  38. package/dist/node/constants.js +1 -1
  39. package/dist/node/dev.d.ts +4 -4
  40. package/dist/node/dev.js +8 -6
  41. package/dist/node/eject.js +5 -5
  42. package/dist/node/initRsbuild.d.ts +2 -3
  43. package/dist/node/initRsbuild.js +9 -7
  44. package/dist/node/last-updated/index.js +2 -2
  45. package/dist/node/logger/hint.js +4 -4
  46. package/dist/node/mdx/options.js +1 -1
  47. package/dist/node/mdx/processor.js +3 -3
  48. package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
  49. package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -1
  50. package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
  51. package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
  52. package/dist/node/mdx/remarkPlugins/containerSyntax.js +6 -5
  53. package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +5 -5
  54. package/dist/node/mdx/remarkPlugins/image.js +5 -5
  55. package/dist/node/mdx/remarkPlugins/link.js +5 -5
  56. package/dist/node/mdx/remarkPlugins/toc.js +1 -1
  57. package/dist/node/medium-zoom/index.js +1 -1
  58. package/dist/node/route/RoutePage.js +6 -4
  59. package/dist/node/route/RouteService.js +3 -3
  60. package/dist/node/route/extractPageData.js +20 -7
  61. package/dist/node/route/normalizeRoutePath.js +1 -1
  62. package/dist/node/runtimeModule/i18n.js +5 -5
  63. package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
  64. package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
  65. package/dist/node/runtimeModule/searchHooks.js +1 -1
  66. package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
  67. package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
  68. package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
  69. package/dist/node/serve.d.ts +3 -3
  70. package/dist/node/serve.js +10 -4
  71. package/dist/node/ssg/alternateLinks.js +1 -1
  72. package/dist/node/ssg/htmlFile.js +1 -1
  73. package/dist/node/ssg/renderHtmlTemplate.js +1 -1
  74. package/dist/node/ssg/renderPage.js +5 -5
  75. package/dist/node/ssg/renderPageWorker.js +2 -2
  76. package/dist/node/ssg/renderPages.js +6 -6
  77. package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
  78. package/dist/node/ssg/ssgEnv.js +1 -1
  79. package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
  80. package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
  81. package/dist/node/ssg-md/remarkSplitMdx.js +1 -1
  82. package/dist/node/ssg-md/renderPage.js +5 -5
  83. package/dist/node/ssg-md/renderPages.js +6 -6
  84. package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
  85. package/dist/node/utils/checkLanguageParity.js +5 -7
  86. package/dist/node/utils/createHash.js +1 -1
  87. package/dist/node/utils/error.js +4 -4
  88. package/dist/node/utils/flattenMdxContent.js +2 -2
  89. package/dist/node/utils/fs.js +1 -1
  90. package/dist/node/utils/getPageKey.js +1 -1
  91. package/dist/node/utils/index.d.ts +1 -1
  92. package/dist/node/utils/reactAlias.js +5 -5
  93. package/dist/node/utils/slash.d.ts +1 -0
  94. package/dist/node/utils/slash.js +4 -0
  95. package/dist/{864~0.js → n~0.js} +41 -41
  96. package/dist/{2711~0.js → o~0.js} +90 -56
  97. package/dist/rslib-runtime~0.js +27 -35
  98. package/dist/theme/components/Link/useLinkNavigate.js +1 -1
  99. package/dist/theme/components/Llms/LlmsHint.js +23 -6
  100. package/dist/theme/components/Nav/NavMenu.css +4 -0
  101. package/dist/theme/components/Nav/NavMenu.d.ts +4 -2
  102. package/dist/theme/components/Nav/NavMenu.js +17 -9
  103. package/dist/theme/components/Nav/index.d.ts +7 -1
  104. package/dist/theme/components/Nav/index.js +13 -4
  105. package/dist/theme/components/NavHamburger/index.d.ts +2 -1
  106. package/dist/theme/components/NavHamburger/index.js +8 -2
  107. package/dist/theme/components/NavList/context.d.ts +1 -0
  108. package/dist/theme/components/NavList/context.js +3 -0
  109. package/dist/theme/components/NavList/index.d.ts +6 -0
  110. package/dist/theme/components/NavList/index.js +17 -0
  111. package/dist/theme/components/NavScreen/NavScreenMenu.d.ts +3 -2
  112. package/dist/theme/components/NavScreen/NavScreenMenu.js +42 -6
  113. package/dist/theme/components/NavScreen/index.css +0 -10
  114. package/dist/theme/components/NavScreen/index.d.ts +2 -1
  115. package/dist/theme/components/NavScreen/index.js +11 -3
  116. package/dist/theme/components/PackageManagerTabs/index.js +2 -2
  117. package/dist/theme/components/ReadPercent/useReadPercent.js +1 -0
  118. package/dist/theme/components/Search/SearchButton.css +1 -0
  119. package/dist/theme/components/Search/SearchPanel.css +47 -9
  120. package/dist/theme/components/Search/SearchPanel.js +97 -205
  121. package/dist/theme/components/Search/logic/providers/LocalProvider.d.ts +1 -0
  122. package/dist/theme/components/Search/logic/providers/LocalProvider.js +23 -13
  123. package/dist/theme/components/Search/logic/search.js +1 -1
  124. package/dist/theme/components/Search/useSearchPanel.d.ts +23 -0
  125. package/dist/theme/components/Search/useSearchPanel.js +155 -0
  126. package/dist/theme/components/Steps/index.css +3 -3
  127. package/dist/theme/components/SwitchAppearance/getClipPath.d.ts +8 -0
  128. package/dist/theme/components/SwitchAppearance/getClipPath.js +13 -0
  129. package/dist/theme/components/SwitchAppearance/index.js +9 -7
  130. package/dist/theme/components/Tabs/index.js +4 -4
  131. package/dist/theme/components/Tag/index.js +2 -2
  132. package/dist/theme/index.d.ts +1 -0
  133. package/dist/theme/index.js +1 -0
  134. package/dist/theme/layout/DocLayout/index.js +2 -2
  135. package/dist/theme/layout/Layout/index.js +12 -4
  136. package/dist/theme/logic/useFullTextSearch.js +6 -1
  137. package/dist/theme/styles/vars/shiki-vars.css +1 -1
  138. package/dist/tinypool~0.js +5 -3
  139. package/dist/{4538~0.js → t~0.js} +2 -2
  140. package/dist/{8472~0.js → v~0.js} +1 -1
  141. package/package.json +11 -12
  142. package/dist/eject-theme/components/NavScreen/NavScreenMenuOthers.tsx +0 -29
  143. package/dist/node/utils/normalizePath.d.ts +0 -3
  144. package/dist/node/utils/normalizePath.js +0 -10
  145. package/dist/theme/components/NavScreen/NavScreenMenuOthers.d.ts +0 -2
  146. package/dist/theme/components/NavScreen/NavScreenMenuOthers.js +0 -30
  147. package/dist/theme/logic/useHandler.d.ts +0 -6
  148. package/dist/theme/logic/useHandler.js +0 -7
  149. /package/dist/{9857~0.js → 4~0.js} +0 -0
  150. /package/dist/{8016~0.js → i~0.js} +0 -0
  151. /package/dist/{5357~0.js → r~0.js} +0 -0
  152. /package/dist/{102~0.js → t2~0.js} +0 -0
  153. /package/dist/{9940~0.js → tx~0.js} +0 -0
@@ -1,8 +1,6 @@
1
- import { node_path, logger, promises } from "../../2711~0.js";
1
+ import { node_path, logger, promises } from "../../o~0.js";
2
+ import { slash } from "./slash.js";
2
3
  import { createError } from "./error.js";
3
- function normalizePath(filePath) {
4
- return filePath.split(node_path.sep).join('/');
5
- }
6
4
  async function getAllMarkdownFilesFrom(dirPath) {
7
5
  const files = await promises.readdir(dirPath, {
8
6
  withFileTypes: true
@@ -28,7 +26,7 @@ async function collectModuleFiles(contentPath, lang, includedDir, excludedDirs,
28
26
  if (!moduleDirStats.isDirectory()) return fileLangMap;
29
27
  const files = await getAllMarkdownFilesFrom(langModuleDir);
30
28
  for (const file of files){
31
- const relativePath = normalizePath(node_path.relative(langDirPath, file));
29
+ const relativePath = slash(node_path.relative(langDirPath, file));
32
30
  if (excludedDirs.some((excludedDir)=>{
33
31
  const isFilePath = /\.(md|mdx)$/.test(excludedDir);
34
32
  return relativePath.includes(excludedDir + (isFilePath ? '' : '/'));
@@ -39,7 +37,7 @@ async function collectModuleFiles(contentPath, lang, includedDir, excludedDirs,
39
37
  }
40
38
  } catch (e) {
41
39
  logger.error(e);
42
- throw createError(`Failed to access directory: ${normalizePath(langModuleDir)}`);
40
+ throw createError(`Failed to access directory: ${slash(langModuleDir)}`);
43
41
  }
44
42
  return fileLangMap;
45
43
  }
@@ -67,7 +65,7 @@ async function checkLanguageParity(config) {
67
65
  });
68
66
  }
69
67
  }
70
- if (missingLanguagesFile.length > 0) throw createError(`Check language parity failed! Missing content:\n${missingLanguagesFile.map((file)=>` - ${normalizePath(file)}`).join('\n')}`);
68
+ if (missingLanguagesFile.length > 0) throw createError(`Check language parity failed! Missing content:\n${missingLanguagesFile.map((file)=>` - ${slash(file)}`).join('\n')}`);
71
69
  logger.success('Language parity checked successfully.');
72
70
  } catch (err) {
73
71
  logger.error('Error during language parity check: \n', err);
@@ -1,4 +1,4 @@
1
- import { createHash as external_node_crypto_createHash } from "../../2711~0.js";
1
+ import { createHash as external_node_crypto_createHash } from "../../o~0.js";
2
2
  function createHash(str, length = 8) {
3
3
  return external_node_crypto_createHash('sha256').update(str).digest('hex').slice(0, length);
4
4
  }
@@ -1,7 +1,7 @@
1
- import { __webpack_require__ } from "../../rslib-runtime~0.js";
2
- import "../../4538~0.js";
3
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
4
- var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
1
+ import { rspackRequire, compatGetDefaultExport } from "../../rslib-runtime~0.js";
2
+ import "../../t~0.js";
3
+ const picocolors = rspackRequire("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
4
+ var picocolors_default = /*#__PURE__*/ compatGetDefaultExport(picocolors);
5
5
  function createError(message, maxStackLines = 5) {
6
6
  const error = new Error(message);
7
7
  if (error.stack) {
@@ -1,4 +1,4 @@
1
- import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../2711~0.js";
1
+ import { node_fs, node_path, core_rspack, logger, createProcessor, MDX_OR_MD_REGEXP } from "../../o~0.js";
2
2
  import { createError } from "./error.js";
3
3
  import { importStatementRegex } from "../constants.js";
4
4
  const RspackResolveFactory = core_rspack.experiments.resolver.ResolverFactory;
@@ -15,7 +15,7 @@ async function resolveDepPath(moduleSpecifier, importer, alias) {
15
15
  });
16
16
  const resolved = await resolver.async(importer, moduleSpecifier);
17
17
  if (resolved.path) return resolved.path;
18
- throw createError(`Empty result when resolving ${moduleSpecifier} from ${importer}`);
18
+ else throw createError(`Empty result when resolving ${moduleSpecifier} from ${importer}`);
19
19
  }
20
20
  async function flattenMdxContent(content, basePath, alias) {
21
21
  const deps = [];
@@ -1,4 +1,4 @@
1
- import { promises } from "../../4538~0.js";
1
+ import { promises } from "../../t~0.js";
2
2
  async function pathExists(path) {
3
3
  try {
4
4
  await promises.access(path);
@@ -1,4 +1,4 @@
1
- import { removeLeadingSlash } from "../../2711~0.js";
1
+ import { removeLeadingSlash } from "../../o~0.js";
2
2
  function getPageKey(route) {
3
3
  const cleanRoute = removeLeadingSlash(route);
4
4
  return cleanRoute.replace(/\//g, '_').replace(/\.[^.]+$/, '') || 'index';
@@ -6,5 +6,5 @@ export * from './flattenMdxContent.js';
6
6
  export * from './fs.js';
7
7
  export * from './getImportAstNode.js';
8
8
  export * from './getPageKey.js';
9
- export * from './normalizePath.js';
10
9
  export * from './reactAlias.js';
10
+ export * from './slash.js';
@@ -1,11 +1,11 @@
1
- import { __webpack_require__ } from "../../rslib-runtime~0.js";
2
- import "../../4538~0.js";
3
- import { node_path, core_rspack, logger } from "../../2711~0.js";
1
+ import { rspackRequire, compatGetDefaultExport } from "../../rslib-runtime~0.js";
2
+ import "../../t~0.js";
3
+ import { node_path, core_rspack, logger } from "../../o~0.js";
4
4
  import { pathExists, readJson } from "./fs.js";
5
5
  import { PACKAGE_ROOT } from "../constants.js";
6
6
  import { hintReactVersion } from "../logger/hint.js";
7
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
8
- var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
7
+ const picocolors = rspackRequire("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
8
+ var picocolors_default = /*#__PURE__*/ compatGetDefaultExport(picocolors);
9
9
  const Resolver = core_rspack.experiments.resolver.ResolverFactory;
10
10
  async function detectPackageMajorVersion(name) {
11
11
  const cwd = process.cwd();
@@ -0,0 +1 @@
1
+ export declare function slash(p: string): string;
@@ -0,0 +1,4 @@
1
+ function slash(p) {
2
+ return p.replace(/\\/g, '/');
3
+ }
4
+ export { slash };
@@ -1,3 +1,4 @@
1
+ import { rspackRequire, moduleFactories } from "./rslib-runtime~0.js";
1
2
  import node_path from "node:path";
2
3
  import { Buffer } from "node:buffer";
3
4
  import node_child_process, { ChildProcess } from "node:child_process";
@@ -7,13 +8,12 @@ import node_os, { constants } from "node:os";
7
8
  import { createReadStream, createWriteStream, readFileSync } from "node:fs";
8
9
  import { setTimeout as promises_setTimeout } from "node:timers/promises";
9
10
  import { debuglog } from "node:util";
10
- import { __webpack_require__ } from "./rslib-runtime~0.js";
11
- import "./2711~0.js";
12
- __webpack_require__.add({
13
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module, __unused_rspack_exports, __webpack_require__) {
14
- const cp = __webpack_require__("child_process");
15
- const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
16
- const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
11
+ import "./o~0.js";
12
+ moduleFactories.add({
13
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module) {
14
+ const cp = rspackRequire("child_process");
15
+ const parse = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
16
+ const enoent = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
17
17
  function spawn(command, args, options) {
18
18
  const parsed = parse(command, args, options);
19
19
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
@@ -69,11 +69,11 @@ __webpack_require__.add({
69
69
  notFoundError
70
70
  };
71
71
  },
72
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
73
- const path = __webpack_require__("path?37f5");
74
- const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
75
- const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
76
- const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
72
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module) {
73
+ const path = rspackRequire("path?37f5");
74
+ const resolveCommand = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
75
+ const escape = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
76
+ const readShebang = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
77
77
  const isWin = 'win32' === process.platform;
78
78
  const isExecutableRegExp = /\.(?:com|exe)$/i;
79
79
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -149,9 +149,9 @@ __webpack_require__.add({
149
149
  module.exports.command = escapeCommand;
150
150
  module.exports.argument = escapeArgument;
151
151
  },
152
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module, __unused_rspack_exports, __webpack_require__) {
153
- const fs = __webpack_require__("fs?cdbd");
154
- const shebangCommand = __webpack_require__("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
152
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module) {
153
+ const fs = rspackRequire("fs?cdbd");
154
+ const shebangCommand = rspackRequire("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
155
155
  function readShebang(command) {
156
156
  const size = 150;
157
157
  const buffer = Buffer.alloc(size);
@@ -165,10 +165,10 @@ __webpack_require__.add({
165
165
  }
166
166
  module.exports = readShebang;
167
167
  },
168
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module, __unused_rspack_exports, __webpack_require__) {
169
- const path = __webpack_require__("path?37f5");
170
- const which = __webpack_require__("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
171
- const getPathKey = __webpack_require__("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
168
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module) {
169
+ const path = rspackRequire("path?37f5");
170
+ const which = rspackRequire("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
171
+ const getPathKey = rspackRequire("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
172
172
  function resolveCommandAttempt(parsed, withoutPathExt) {
173
173
  const env = parsed.options.env || process.env;
174
174
  const cwd = process.cwd();
@@ -196,10 +196,10 @@ __webpack_require__.add({
196
196
  }
197
197
  module.exports = resolveCommand;
198
198
  },
199
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module, __unused_rspack_exports, __webpack_require__) {
200
- __webpack_require__("fs?cdbd");
199
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module) {
200
+ rspackRequire("fs?cdbd");
201
201
  var core;
202
- core = 'win32' === process.platform || global.TESTING_WINDOWS ? __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
202
+ core = 'win32' === process.platform || global.TESTING_WINDOWS ? rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
203
203
  module.exports = isexe;
204
204
  isexe.sync = sync;
205
205
  function isexe(path, options, cb) {
@@ -231,14 +231,14 @@ __webpack_require__.add({
231
231
  return core.sync(path, options || {});
232
232
  } catch (er) {
233
233
  if (options && options.ignoreErrors || 'EACCES' === er.code) return false;
234
- throw er;
234
+ else throw er;
235
235
  }
236
236
  }
237
237
  },
238
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module, __unused_rspack_exports, __webpack_require__) {
238
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module) {
239
239
  module.exports = isexe;
240
240
  isexe.sync = sync;
241
- var fs = __webpack_require__("fs?cdbd");
241
+ var fs = rspackRequire("fs?cdbd");
242
242
  function isexe(path, options, cb) {
243
243
  fs.stat(path, function(er, stat) {
244
244
  cb(er, er ? false : checkStat(stat, options));
@@ -264,10 +264,10 @@ __webpack_require__.add({
264
264
  return ret;
265
265
  }
266
266
  },
267
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module, __unused_rspack_exports, __webpack_require__) {
267
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module) {
268
268
  module.exports = isexe;
269
269
  isexe.sync = sync;
270
- var fs = __webpack_require__("fs?cdbd");
270
+ var fs = rspackRequire("fs?cdbd");
271
271
  function checkPathExt(path, options) {
272
272
  var pathext = void 0 !== options.pathExt ? options.pathExt : process.env.PATHEXT;
273
273
  if (!pathext) return true;
@@ -292,8 +292,8 @@ __webpack_require__.add({
292
292
  return checkStat(fs.statSync(path), path, options);
293
293
  }
294
294
  },
295
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module, __unused_rspack_exports, __webpack_require__) {
296
- const { PassThrough } = __webpack_require__("stream");
295
+ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module) {
296
+ const { PassThrough } = rspackRequire("stream");
297
297
  module.exports = function() {
298
298
  var sources = [];
299
299
  var output = new PassThrough({
@@ -339,8 +339,8 @@ __webpack_require__.add({
339
339
  module.exports = pathKey;
340
340
  module.exports["default"] = pathKey;
341
341
  },
342
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module, __unused_rspack_exports, __webpack_require__) {
343
- const shebangRegex = __webpack_require__("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
342
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module) {
343
+ const shebangRegex = rspackRequire("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
344
344
  module.exports = (string = '')=>{
345
345
  const match = string.match(shebangRegex);
346
346
  if (!match) return null;
@@ -353,11 +353,11 @@ __webpack_require__.add({
353
353
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js" (module) {
354
354
  module.exports = /^#!(.*)/;
355
355
  },
356
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module, __unused_rspack_exports, __webpack_require__) {
356
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module) {
357
357
  const isWindows = 'win32' === process.platform || 'cygwin' === process.env.OSTYPE || 'msys' === process.env.OSTYPE;
358
- const path = __webpack_require__("path?37f5");
358
+ const path = rspackRequire("path?37f5");
359
359
  const COLON = isWindows ? ';' : ':';
360
- const isexe = __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
360
+ const isexe = rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
361
361
  const getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {
362
362
  code: 'ENOENT'
363
363
  });
@@ -975,7 +975,7 @@ if ('win32' !== process.platform) signals_signals.push('SIGALRM', 'SIGABRT', 'SI
975
975
  if ('linux' === process.platform) signals_signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT');
976
976
  const processOk = (process1)=>!!process1 && 'object' == typeof process1 && 'function' == typeof process1.removeListener && 'function' == typeof process1.emit && 'function' == typeof process1.reallyExit && 'function' == typeof process1.listeners && 'function' == typeof process1.kill && 'number' == typeof process1.pid && 'function' == typeof process1.on;
977
977
  const kExitEmitter = Symbol.for('signal-exit emitter');
978
- const global = globalThis;
978
+ const mjs_global = globalThis;
979
979
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
980
980
  class Emitter {
981
981
  emitted = {
@@ -989,8 +989,8 @@ class Emitter {
989
989
  count = 0;
990
990
  id = Math.random();
991
991
  constructor(){
992
- if (global[kExitEmitter]) return global[kExitEmitter];
993
- ObjectDefineProperty(global, kExitEmitter, {
992
+ if (mjs_global[kExitEmitter]) return mjs_global[kExitEmitter];
993
+ ObjectDefineProperty(mjs_global, kExitEmitter, {
994
994
  value: this,
995
995
  writable: false,
996
996
  enumerable: false,
@@ -1107,7 +1107,7 @@ class SignalExit extends SignalExitBase {
1107
1107
  #processEmit(ev, ...args) {
1108
1108
  const og = this.#originalProcessEmit;
1109
1109
  if (!('exit' === ev && processOk(this.#process))) return og.call(this.#process, ev, ...args);
1110
- {
1110
+ else {
1111
1111
  if ('number' == typeof args[0]) this.#process.exitCode = args[0];
1112
1112
  const ret = og.call(this.#process, ev, ...args);
1113
1113
  this.#emitter.emit('exit', this.#process.exitCode, null);
@@ -1116,7 +1116,7 @@ class SignalExit extends SignalExitBase {
1116
1116
  }
1117
1117
  }
1118
1118
  const mjs_process = globalThis.process;
1119
- const { onExit: onExit, load: load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1119
+ const { onExit: onExit, load: mjs_load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1120
1120
  const DEFAULT_FORCE_KILL_TIMEOUT = 5000;
1121
1121
  const spawnedKill = (kill, signal = 'SIGTERM', options = {})=>{
1122
1122
  const killResult = kill(signal);
@@ -1379,7 +1379,7 @@ const stringMethods = {
1379
1379
  getFinalChunk: getFinalStringChunk,
1380
1380
  finalize: utils_getContentsProp
1381
1381
  };
1382
- const merge_stream = __webpack_require__("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1382
+ const merge_stream = rspackRequire("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1383
1383
  const validateInputOptions = (input)=>{
1384
1384
  if (void 0 !== input) throw new TypeError('The `input` and `inputFile` options cannot be both set.');
1385
1385
  };
@@ -1574,7 +1574,7 @@ const logCommand = (escapedCommand, { verbose })=>{
1574
1574
  if (!verbose) return;
1575
1575
  node_process.stderr.write(`[${getTimestamp()}] ${escapedCommand}\n`);
1576
1576
  };
1577
- const cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1577
+ const cross_spawn = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1578
1578
  const DEFAULT_MAX_BUFFER = 100000000;
1579
1579
  const getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath })=>{
1580
1580
  const env = extendEnv ? {