@rsdoctor/core 1.2.3 → 1.2.4-beta.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.
Files changed (311) hide show
  1. package/dist/build-utils/{common/trans-utils/transStats.js → build/chunks/assetsModules.cjs} +9 -12
  2. package/dist/build-utils/build/chunks/assetsModules.d.ts +0 -1
  3. package/dist/build-utils/build/chunks/assetsModules.js +7 -39
  4. package/dist/build-utils/build/chunks/chunkTransform.cjs +39 -0
  5. package/dist/build-utils/build/chunks/chunkTransform.d.ts +0 -1
  6. package/dist/build-utils/build/chunks/chunkTransform.js +5 -37
  7. package/dist/build-utils/{common/chunks/index.js → build/chunks/index.cjs} +8 -8
  8. package/dist/build-utils/build/chunks/index.d.ts +0 -1
  9. package/dist/build-utils/build/chunks/index.js +5 -78
  10. package/dist/build-utils/build/chunks/rspack/transform.cjs +80 -0
  11. package/dist/build-utils/build/chunks/rspack/transform.d.ts +0 -1
  12. package/dist/build-utils/build/chunks/rspack/transform.js +7 -42
  13. package/dist/build-utils/{common/index.js → build/index.cjs} +14 -14
  14. package/dist/build-utils/build/index.d.ts +0 -1
  15. package/dist/build-utils/build/index.js +8 -52
  16. package/dist/build-utils/build/loader/index.cjs +69 -0
  17. package/dist/build-utils/build/loader/index.d.ts +1 -1
  18. package/dist/build-utils/build/loader/index.js +4 -60
  19. package/dist/build-utils/build/loader/probeLoader.cjs +90 -0
  20. package/dist/build-utils/build/loader/probeLoader.d.ts +0 -1
  21. package/dist/build-utils/build/loader/probeLoader.js +12 -57
  22. package/dist/build-utils/build/loader/probeLoaderPlugin.cjs +65 -0
  23. package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts +0 -1
  24. package/dist/build-utils/build/loader/probeLoaderPlugin.js +11 -43
  25. package/dist/build-utils/build/module-graph/index.cjs +87 -0
  26. package/dist/build-utils/build/module-graph/index.d.ts +0 -1
  27. package/dist/build-utils/build/module-graph/index.js +6 -87
  28. package/dist/build-utils/build/module-graph/parser.cjs +46 -0
  29. package/dist/build-utils/build/module-graph/parser.d.ts +0 -1
  30. package/dist/build-utils/build/module-graph/parser.js +7 -39
  31. package/dist/build-utils/build/module-graph/rspack/transform.cjs +110 -0
  32. package/dist/build-utils/build/module-graph/rspack/transform.d.ts +0 -1
  33. package/dist/build-utils/build/module-graph/rspack/transform.js +12 -50
  34. package/dist/build-utils/build/module-graph/transform.cjs +40 -0
  35. package/dist/build-utils/build/module-graph/transform.d.ts +0 -1
  36. package/dist/build-utils/build/module-graph/transform.js +6 -38
  37. package/dist/build-utils/build/module-graph/treeShaking.cjs +107 -0
  38. package/dist/build-utils/build/module-graph/treeShaking.d.ts +0 -1
  39. package/dist/build-utils/build/module-graph/treeShaking.js +15 -49
  40. package/dist/build-utils/build/module-graph/utils.cjs +97 -0
  41. package/dist/build-utils/build/module-graph/utils.d.ts +0 -1
  42. package/dist/build-utils/build/module-graph/utils.js +15 -50
  43. package/dist/build-utils/build/module-graph/webpack/transform.cjs +171 -0
  44. package/dist/build-utils/build/module-graph/webpack/transform.d.ts +0 -1
  45. package/dist/build-utils/build/module-graph/webpack/transform.js +31 -57
  46. package/dist/build-utils/{common/module-graph/index.js → build/utils/index.cjs} +15 -15
  47. package/dist/build-utils/build/utils/index.d.ts +0 -2
  48. package/dist/build-utils/build/utils/index.js +5 -87
  49. package/dist/build-utils/build/utils/loader.cjs +356 -0
  50. package/dist/build-utils/build/utils/loader.d.ts +1 -3
  51. package/dist/build-utils/build/utils/loader.js +44 -90
  52. package/dist/build-utils/build/utils/parseBundle.cjs +284 -0
  53. package/dist/build-utils/build/utils/parseBundle.d.ts +1 -2
  54. package/dist/build-utils/build/utils/parseBundle.js +19 -61
  55. package/dist/build-utils/build/utils/plugin.cjs +61 -0
  56. package/dist/build-utils/build/utils/plugin.d.ts +0 -1
  57. package/dist/build-utils/build/utils/plugin.js +5 -43
  58. package/dist/build-utils/index.cjs +36 -0
  59. package/dist/build-utils/index.d.ts +0 -2
  60. package/dist/build-utils/index.js +4 -40
  61. package/dist/index.cjs +85 -0
  62. package/dist/index.d.ts +0 -1
  63. package/dist/index.js +6 -85
  64. package/dist/inner-plugins/constants.cjs +64 -0
  65. package/dist/inner-plugins/constants.d.ts +0 -1
  66. package/dist/inner-plugins/constants.js +3 -47
  67. package/dist/{build-utils/common/trans-utils/index.js → inner-plugins/index.cjs} +14 -5
  68. package/dist/inner-plugins/index.d.ts +0 -1
  69. package/dist/inner-plugins/index.js +4 -69
  70. package/dist/inner-plugins/loaders/proxy.cjs +90 -0
  71. package/dist/inner-plugins/loaders/proxy.d.ts +4 -2
  72. package/dist/inner-plugins/loaders/proxy.js +19 -22
  73. package/dist/inner-plugins/plugins/base.cjs +53 -0
  74. package/dist/inner-plugins/plugins/base.d.ts +3 -5
  75. package/dist/inner-plugins/plugins/base.js +6 -38
  76. package/dist/inner-plugins/plugins/bundle.cjs +121 -0
  77. package/dist/inner-plugins/plugins/bundle.d.ts +1 -1
  78. package/dist/inner-plugins/plugins/bundle.js +33 -49
  79. package/dist/inner-plugins/plugins/bundleTagPlugin.cjs +93 -0
  80. package/dist/inner-plugins/plugins/bundleTagPlugin.d.ts +0 -1
  81. package/dist/inner-plugins/plugins/bundleTagPlugin.js +12 -44
  82. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.cjs +166 -0
  83. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts +0 -1
  84. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.js +42 -70
  85. package/dist/inner-plugins/plugins/errors.cjs +98 -0
  86. package/dist/inner-plugins/plugins/errors.d.ts +0 -1
  87. package/dist/inner-plugins/plugins/errors.js +20 -52
  88. package/dist/inner-plugins/plugins/index.cjs +141 -0
  89. package/dist/inner-plugins/plugins/index.d.ts +0 -1
  90. package/dist/inner-plugins/plugins/index.js +12 -141
  91. package/dist/inner-plugins/plugins/loader.cjs +155 -0
  92. package/dist/inner-plugins/plugins/loader.d.ts +0 -1
  93. package/dist/inner-plugins/plugins/loader.js +29 -57
  94. package/dist/inner-plugins/plugins/plugins.cjs +73 -0
  95. package/dist/inner-plugins/plugins/plugins.d.ts +0 -1
  96. package/dist/inner-plugins/plugins/plugins.js +18 -50
  97. package/dist/inner-plugins/plugins/progress.cjs +70 -0
  98. package/dist/inner-plugins/plugins/progress.d.ts +0 -1
  99. package/dist/inner-plugins/plugins/progress.js +9 -41
  100. package/dist/inner-plugins/plugins/rspack.cjs +117 -0
  101. package/dist/inner-plugins/plugins/rspack.d.ts +0 -1
  102. package/dist/inner-plugins/plugins/rspack.js +24 -56
  103. package/dist/inner-plugins/plugins/rules.cjs +97 -0
  104. package/dist/inner-plugins/plugins/rules.d.ts +0 -1
  105. package/dist/inner-plugins/plugins/rules.js +19 -51
  106. package/dist/inner-plugins/plugins/sourcemapTool.cjs +213 -0
  107. package/dist/inner-plugins/plugins/sourcemapTool.d.ts +0 -1
  108. package/dist/inner-plugins/plugins/sourcemapTool.js +23 -67
  109. package/dist/inner-plugins/plugins/summary.cjs +125 -0
  110. package/dist/inner-plugins/plugins/summary.d.ts +0 -1
  111. package/dist/inner-plugins/plugins/summary.js +28 -60
  112. package/dist/inner-plugins/utils/circleDetect.cjs +49 -0
  113. package/dist/inner-plugins/utils/circleDetect.d.ts +0 -1
  114. package/dist/inner-plugins/utils/circleDetect.js +3 -35
  115. package/dist/inner-plugins/utils/config.cjs +177 -0
  116. package/dist/inner-plugins/utils/config.d.ts +3 -8
  117. package/dist/inner-plugins/utils/config.js +43 -116
  118. package/dist/inner-plugins/utils/index.cjs +124 -0
  119. package/dist/inner-plugins/utils/index.d.ts +4 -1
  120. package/dist/inner-plugins/utils/index.js +9 -96
  121. package/dist/inner-plugins/utils/loader.cjs +231 -0
  122. package/dist/inner-plugins/utils/loader.d.ts +4 -4
  123. package/dist/inner-plugins/utils/loader.js +39 -97
  124. package/dist/inner-plugins/utils/normalize-config.cjs +122 -0
  125. package/dist/inner-plugins/utils/normalize-config.d.ts +40 -0
  126. package/dist/inner-plugins/utils/normalize-config.js +78 -0
  127. package/dist/inner-plugins/utils/plugin-common.cjs +73 -0
  128. package/dist/inner-plugins/utils/plugin-common.d.ts +6 -0
  129. package/dist/inner-plugins/utils/plugin-common.js +28 -0
  130. package/dist/inner-plugins/utils/plugin.cjs +107 -0
  131. package/dist/inner-plugins/utils/plugin.d.ts +2 -4
  132. package/dist/inner-plugins/utils/plugin.js +5 -40
  133. package/dist/inner-plugins/utils/sdk.cjs +55 -0
  134. package/dist/inner-plugins/utils/sdk.d.ts +8 -4
  135. package/dist/inner-plugins/utils/sdk.js +9 -42
  136. package/dist/rules/index.cjs +85 -0
  137. package/dist/rules/index.d.ts +0 -1
  138. package/dist/rules/index.js +6 -85
  139. package/dist/rules/linter.cjs +71 -0
  140. package/dist/rules/linter.d.ts +0 -1
  141. package/dist/rules/linter.js +11 -46
  142. package/dist/rules/rule.cjs +137 -0
  143. package/dist/rules/rule.d.ts +1 -2
  144. package/dist/rules/rule.js +20 -55
  145. package/dist/rules/rules/cross-chunks-package/index.cjs +73 -0
  146. package/dist/rules/rules/cross-chunks-package/index.d.ts +0 -1
  147. package/dist/rules/rules/cross-chunks-package/index.js +10 -42
  148. package/dist/rules/rules/cross-chunks-package/types.d.ts +0 -1
  149. package/dist/rules/rules/cross-chunks-package/types.js +2 -18
  150. package/dist/rules/rules/cross-chunks-package/utils.cjs +40 -0
  151. package/dist/rules/rules/cross-chunks-package/utils.d.ts +1 -2
  152. package/dist/rules/rules/cross-chunks-package/utils.js +4 -36
  153. package/dist/rules/rules/default-import-check/index.cjs +116 -0
  154. package/dist/rules/rules/default-import-check/index.d.ts +0 -1
  155. package/dist/rules/rules/default-import-check/index.js +17 -49
  156. package/dist/rules/rules/default-import-check/types.cjs +18 -0
  157. package/dist/rules/rules/default-import-check/types.d.ts +0 -1
  158. package/dist/rules/rules/default-import-check/types.js +2 -18
  159. package/dist/rules/rules/default-import-check/utils.cjs +98 -0
  160. package/dist/rules/rules/default-import-check/utils.d.ts +0 -1
  161. package/dist/rules/rules/default-import-check/utils.js +9 -53
  162. package/dist/rules/rules/duplicate-package/index.cjs +71 -0
  163. package/dist/rules/rules/duplicate-package/index.d.ts +0 -1
  164. package/dist/rules/rules/duplicate-package/index.js +15 -47
  165. package/dist/rules/rules/duplicate-package/types.cjs +60 -0
  166. package/dist/rules/rules/duplicate-package/types.d.ts +0 -1
  167. package/dist/rules/rules/duplicate-package/types.js +5 -40
  168. package/dist/rules/rules/duplicate-package/utils.cjs +84 -0
  169. package/dist/rules/rules/duplicate-package/utils.d.ts +0 -1
  170. package/dist/rules/rules/duplicate-package/utils.js +6 -51
  171. package/dist/rules/rules/ecma-version-check/index.cjs +97 -0
  172. package/dist/rules/rules/ecma-version-check/index.d.ts +0 -1
  173. package/dist/rules/rules/ecma-version-check/index.js +16 -58
  174. package/dist/rules/rules/ecma-version-check/types.cjs +18 -0
  175. package/dist/rules/rules/ecma-version-check/types.d.ts +0 -1
  176. package/dist/rules/rules/ecma-version-check/types.js +2 -18
  177. package/dist/rules/rules/ecma-version-check/utils.cjs +39 -0
  178. package/dist/rules/rules/ecma-version-check/utils.d.ts +0 -1
  179. package/dist/rules/rules/ecma-version-check/utils.js +3 -35
  180. package/dist/rules/rules/index.cjs +47 -0
  181. package/dist/rules/rules/index.d.ts +0 -1
  182. package/dist/rules/rules/index.js +13 -45
  183. package/dist/rules/rules/loader-performance-optimization/index.cjs +119 -0
  184. package/dist/rules/rules/loader-performance-optimization/index.d.ts +0 -1
  185. package/dist/rules/rules/loader-performance-optimization/index.js +14 -46
  186. package/dist/rules/rules/loader-performance-optimization/types.cjs +18 -0
  187. package/dist/rules/rules/loader-performance-optimization/types.d.ts +0 -1
  188. package/dist/rules/rules/loader-performance-optimization/types.js +2 -18
  189. package/dist/{build-utils/common/chunks/assetsContent.js → rules/rules/loader-performance-optimization/utils.cjs} +9 -10
  190. package/dist/rules/rules/loader-performance-optimization/utils.d.ts +0 -1
  191. package/dist/rules/rules/loader-performance-optimization/utils.js +3 -35
  192. package/dist/rules/utils.cjs +46 -0
  193. package/dist/rules/utils.d.ts +0 -1
  194. package/dist/rules/utils.js +6 -41
  195. package/dist/types/chunks.cjs +18 -0
  196. package/dist/types/chunks.d.ts +1 -7
  197. package/dist/types/chunks.js +2 -18
  198. package/dist/types/index.cjs +87 -0
  199. package/dist/types/index.d.ts +0 -2
  200. package/dist/types/index.js +6 -96
  201. package/dist/types/loader.cjs +18 -0
  202. package/dist/types/loader.d.ts +0 -1
  203. package/dist/types/loader.js +2 -18
  204. package/dist/types/plugin.cjs +18 -0
  205. package/dist/types/plugin.d.ts +7 -108
  206. package/dist/types/plugin.js +2 -18
  207. package/dist/types/rules.cjs +18 -0
  208. package/dist/types/rules.d.ts +0 -1
  209. package/dist/types/rules.js +2 -18
  210. package/package.json +29 -32
  211. package/dist/build-utils/build/chunks/assetsModules.d.ts.map +0 -1
  212. package/dist/build-utils/build/chunks/chunkTransform.d.ts.map +0 -1
  213. package/dist/build-utils/build/chunks/index.d.ts.map +0 -1
  214. package/dist/build-utils/build/chunks/rspack/transform.d.ts.map +0 -1
  215. package/dist/build-utils/build/index.d.ts.map +0 -1
  216. package/dist/build-utils/build/loader/index.d.ts.map +0 -1
  217. package/dist/build-utils/build/loader/probeLoader.d.ts.map +0 -1
  218. package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts.map +0 -1
  219. package/dist/build-utils/build/module-graph/index.d.ts.map +0 -1
  220. package/dist/build-utils/build/module-graph/parser.d.ts.map +0 -1
  221. package/dist/build-utils/build/module-graph/rspack/transform.d.ts.map +0 -1
  222. package/dist/build-utils/build/module-graph/transform.d.ts.map +0 -1
  223. package/dist/build-utils/build/module-graph/treeShaking.d.ts.map +0 -1
  224. package/dist/build-utils/build/module-graph/utils.d.ts.map +0 -1
  225. package/dist/build-utils/build/module-graph/webpack/transform.d.ts.map +0 -1
  226. package/dist/build-utils/build/utils/index.d.ts.map +0 -1
  227. package/dist/build-utils/build/utils/loader.d.ts.map +0 -1
  228. package/dist/build-utils/build/utils/parseBundle.d.ts.map +0 -1
  229. package/dist/build-utils/build/utils/plugin.d.ts.map +0 -1
  230. package/dist/build-utils/common/chunks/assetsContent.d.ts +0 -6
  231. package/dist/build-utils/common/chunks/assetsContent.d.ts.map +0 -1
  232. package/dist/build-utils/common/chunks/assetsModules.d.ts +0 -23
  233. package/dist/build-utils/common/chunks/assetsModules.d.ts.map +0 -1
  234. package/dist/build-utils/common/chunks/assetsModules.js +0 -155
  235. package/dist/build-utils/common/chunks/chunkTransform.d.ts +0 -6
  236. package/dist/build-utils/common/chunks/chunkTransform.d.ts.map +0 -1
  237. package/dist/build-utils/common/chunks/chunkTransform.js +0 -74
  238. package/dist/build-utils/common/chunks/index.d.ts +0 -4
  239. package/dist/build-utils/common/chunks/index.d.ts.map +0 -1
  240. package/dist/build-utils/common/index.d.ts +0 -6
  241. package/dist/build-utils/common/index.d.ts.map +0 -1
  242. package/dist/build-utils/common/module-graph/compatible.d.ts +0 -9
  243. package/dist/build-utils/common/module-graph/compatible.d.ts.map +0 -1
  244. package/dist/build-utils/common/module-graph/compatible.js +0 -73
  245. package/dist/build-utils/common/module-graph/index.d.ts +0 -4
  246. package/dist/build-utils/common/module-graph/index.d.ts.map +0 -1
  247. package/dist/build-utils/common/module-graph/transform.d.ts +0 -8
  248. package/dist/build-utils/common/module-graph/transform.d.ts.map +0 -1
  249. package/dist/build-utils/common/module-graph/transform.js +0 -181
  250. package/dist/build-utils/common/module-graph/utils.d.ts +0 -14
  251. package/dist/build-utils/common/module-graph/utils.d.ts.map +0 -1
  252. package/dist/build-utils/common/module-graph/utils.js +0 -58
  253. package/dist/build-utils/common/trans-utils/index.d.ts +0 -2
  254. package/dist/build-utils/common/trans-utils/index.d.ts.map +0 -1
  255. package/dist/build-utils/common/trans-utils/transStats.d.ts +0 -11
  256. package/dist/build-utils/common/trans-utils/transStats.d.ts.map +0 -1
  257. package/dist/build-utils/common/webpack/compatible.d.ts +0 -18
  258. package/dist/build-utils/common/webpack/compatible.d.ts.map +0 -1
  259. package/dist/build-utils/common/webpack/compatible.js +0 -156
  260. package/dist/build-utils/index.d.ts.map +0 -1
  261. package/dist/index.d.ts.map +0 -1
  262. package/dist/inner-plugins/constants.d.ts.map +0 -1
  263. package/dist/inner-plugins/index.d.ts.map +0 -1
  264. package/dist/inner-plugins/loaders/proxy.d.ts.map +0 -1
  265. package/dist/inner-plugins/plugins/base.d.ts.map +0 -1
  266. package/dist/inner-plugins/plugins/bundle.d.ts.map +0 -1
  267. package/dist/inner-plugins/plugins/bundleTagPlugin.d.ts.map +0 -1
  268. package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts.map +0 -1
  269. package/dist/inner-plugins/plugins/errors.d.ts.map +0 -1
  270. package/dist/inner-plugins/plugins/index.d.ts.map +0 -1
  271. package/dist/inner-plugins/plugins/loader.d.ts.map +0 -1
  272. package/dist/inner-plugins/plugins/plugins.d.ts.map +0 -1
  273. package/dist/inner-plugins/plugins/progress.d.ts.map +0 -1
  274. package/dist/inner-plugins/plugins/rspack.d.ts.map +0 -1
  275. package/dist/inner-plugins/plugins/rules.d.ts.map +0 -1
  276. package/dist/inner-plugins/plugins/sourcemapTool.d.ts.map +0 -1
  277. package/dist/inner-plugins/plugins/summary.d.ts.map +0 -1
  278. package/dist/inner-plugins/utils/circleDetect.d.ts.map +0 -1
  279. package/dist/inner-plugins/utils/config.d.ts.map +0 -1
  280. package/dist/inner-plugins/utils/index.d.ts.map +0 -1
  281. package/dist/inner-plugins/utils/loader.d.ts.map +0 -1
  282. package/dist/inner-plugins/utils/plugin.d.ts.map +0 -1
  283. package/dist/inner-plugins/utils/sdk.d.ts.map +0 -1
  284. package/dist/rules/index.d.ts.map +0 -1
  285. package/dist/rules/linter.d.ts.map +0 -1
  286. package/dist/rules/rule.d.ts.map +0 -1
  287. package/dist/rules/rules/cross-chunks-package/index.d.ts.map +0 -1
  288. package/dist/rules/rules/cross-chunks-package/types.d.ts.map +0 -1
  289. package/dist/rules/rules/cross-chunks-package/utils.d.ts.map +0 -1
  290. package/dist/rules/rules/default-import-check/index.d.ts.map +0 -1
  291. package/dist/rules/rules/default-import-check/types.d.ts.map +0 -1
  292. package/dist/rules/rules/default-import-check/utils.d.ts.map +0 -1
  293. package/dist/rules/rules/duplicate-package/index.d.ts.map +0 -1
  294. package/dist/rules/rules/duplicate-package/types.d.ts.map +0 -1
  295. package/dist/rules/rules/duplicate-package/utils.d.ts.map +0 -1
  296. package/dist/rules/rules/ecma-version-check/index.d.ts.map +0 -1
  297. package/dist/rules/rules/ecma-version-check/types.d.ts.map +0 -1
  298. package/dist/rules/rules/ecma-version-check/utils.d.ts.map +0 -1
  299. package/dist/rules/rules/index.d.ts.map +0 -1
  300. package/dist/rules/rules/loader-performance-optimization/index.d.ts.map +0 -1
  301. package/dist/rules/rules/loader-performance-optimization/types.d.ts.map +0 -1
  302. package/dist/rules/rules/loader-performance-optimization/utils.d.ts.map +0 -1
  303. package/dist/rules/utils.d.ts.map +0 -1
  304. package/dist/types/chunks.d.ts.map +0 -1
  305. package/dist/types/index.d.ts.map +0 -1
  306. package/dist/types/loader.d.ts.map +0 -1
  307. package/dist/types/plugin.d.ts.map +0 -1
  308. package/dist/types/rules.d.ts.map +0 -1
  309. package/dist/types/webpack.d.ts +0 -15
  310. package/dist/types/webpack.d.ts.map +0 -1
  311. /package/dist/{types/webpack.js → rules/rules/cross-chunks-package/types.cjs} +0 -0
@@ -1,96 +1,6 @@
1
- "use strict";
2
- var __webpack_modules__ = {
3
- "./chunks": function(module) {
4
- module.exports = require("./chunks.js");
5
- },
6
- "./loader": function(module) {
7
- module.exports = require("./loader.js");
8
- },
9
- "./plugin": function(module) {
10
- module.exports = require("./plugin.js");
11
- },
12
- "./rules?8d0a": function(module) {
13
- module.exports = require("./rules.js");
14
- },
15
- "./webpack": function(module) {
16
- module.exports = require("./webpack.js");
17
- }
18
- };
19
- var __webpack_module_cache__ = {};
20
- function __webpack_require__(moduleId) {
21
- var cachedModule = __webpack_module_cache__[moduleId];
22
- if (void 0 !== cachedModule) return cachedModule.exports;
23
- var module = __webpack_module_cache__[moduleId] = {
24
- exports: {}
25
- };
26
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
27
- return module.exports;
28
- }
29
- (()=>{
30
- __webpack_require__.n = (module)=>{
31
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
32
- __webpack_require__.d(getter, {
33
- a: getter
34
- });
35
- return getter;
36
- };
37
- })();
38
- (()=>{
39
- __webpack_require__.d = (exports1, definition)=>{
40
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
41
- enumerable: true,
42
- get: definition[key]
43
- });
44
- };
45
- })();
46
- (()=>{
47
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
48
- })();
49
- (()=>{
50
- __webpack_require__.r = (exports1)=>{
51
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
52
- value: 'Module'
53
- });
54
- Object.defineProperty(exports1, '__esModule', {
55
- value: true
56
- });
57
- };
58
- })();
59
- var __webpack_exports__ = {};
60
- (()=>{
61
- __webpack_require__.r(__webpack_exports__);
62
- var _chunks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./chunks");
63
- var __WEBPACK_REEXPORT_OBJECT__ = {};
64
- for(var __WEBPACK_IMPORT_KEY__ in _chunks__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
65
- return _chunks__WEBPACK_IMPORTED_MODULE_0__[key];
66
- }).bind(0, __WEBPACK_IMPORT_KEY__);
67
- __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
68
- var _rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./rules?8d0a");
69
- var __WEBPACK_REEXPORT_OBJECT__ = {};
70
- for(var __WEBPACK_IMPORT_KEY__ in _rules__WEBPACK_IMPORTED_MODULE_1__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
71
- return _rules__WEBPACK_IMPORTED_MODULE_1__[key];
72
- }).bind(0, __WEBPACK_IMPORT_KEY__);
73
- __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
74
- var _webpack__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./webpack");
75
- var __WEBPACK_REEXPORT_OBJECT__ = {};
76
- for(var __WEBPACK_IMPORT_KEY__ in _webpack__WEBPACK_IMPORTED_MODULE_2__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
77
- return _webpack__WEBPACK_IMPORTED_MODULE_2__[key];
78
- }).bind(0, __WEBPACK_IMPORT_KEY__);
79
- __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
80
- var _loader__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./loader");
81
- var __WEBPACK_REEXPORT_OBJECT__ = {};
82
- for(var __WEBPACK_IMPORT_KEY__ in _loader__WEBPACK_IMPORTED_MODULE_3__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
83
- return _loader__WEBPACK_IMPORTED_MODULE_3__[key];
84
- }).bind(0, __WEBPACK_IMPORT_KEY__);
85
- __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
86
- var _plugin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./plugin");
87
- var __WEBPACK_REEXPORT_OBJECT__ = {};
88
- for(var __WEBPACK_IMPORT_KEY__ in _plugin__WEBPACK_IMPORTED_MODULE_4__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
89
- return _plugin__WEBPACK_IMPORTED_MODULE_4__[key];
90
- }).bind(0, __WEBPACK_IMPORT_KEY__);
91
- __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
92
- })();
93
- for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
94
- Object.defineProperty(exports, '__esModule', {
95
- value: true
96
- });
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ export * from "./chunks.js";
4
+ export * from "./rules.js";
5
+ export * from "./loader.js";
6
+ export * from "./plugin.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });
@@ -17,4 +17,3 @@ export interface ProxyLoaderOptions {
17
17
  [key: string]: any;
18
18
  [Loader.LoaderInternalPropertyName]: ProxyLoaderInternalOptions;
19
19
  }
20
- //# sourceMappingURL=loader.d.ts.map
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.r = (exports1)=>{
5
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
- value: 'Module'
7
- });
8
- Object.defineProperty(exports1, '__esModule', {
9
- value: true
10
- });
11
- };
12
- })();
13
- var __webpack_exports__ = {};
14
- __webpack_require__.r(__webpack_exports__);
15
- for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
- Object.defineProperty(exports, '__esModule', {
17
- value: true
18
- });
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });
@@ -1,110 +1,11 @@
1
- import type { Linter as LinterType, Common, Plugin, SDK, Linter } from '@rsdoctor/types';
2
- import type { RsdoctorPrimarySDK, RsdoctorSDK } from '@rsdoctor/sdk';
3
- import { rules } from '../rules/rules';
4
- type InternalRules = Common.UnionToTuple<(typeof rules)[number]>;
5
- export type IReportCodeType = {
6
- noModuleSource?: boolean;
7
- noAssetsAndModuleSource?: boolean;
8
- noCode?: boolean;
9
- };
10
- export type IOutput = {};
11
- export interface RsdoctorWebpackPluginOptions<Rules extends LinterType.ExtendRuleData[]> {
12
- /** Checker configuration */
13
- linter?: LinterType.Options<Rules, InternalRules>;
14
- /**
15
- * the switch for the Rsdoctor features.
16
- */
17
- features?: Plugin.RsdoctorWebpackPluginFeatures | Array<keyof Plugin.RsdoctorWebpackPluginFeatures>;
18
- /**
19
- * Rsdoctor mode option:
20
- * - normal: Refers to the normal mode.
21
- * - brief: Refers to the brief mode, which only displays the results of the duration analysis and build artifact analysis
22
- * and does not display any part of the code.
23
- * - lite: Refers to the lightweight mode,
24
- * which is a lightweight analysis report in the normal mode with the source code display removed.
25
- */
26
- mode?: keyof typeof SDK.IMode;
27
- /**
28
- * configuration of the interceptor for webpack loaders. TODO: delete this options.
29
- * @description worked when the `features.loader === true`.
30
- */
31
- loaderInterceptorOptions?: {
32
- /**
33
- * loaders which you want to skip it (will not report the target loader data when webpack compile).
34
- */
35
- skipLoaders?: string[];
36
- };
37
- /**
38
- * turn on it if you don't need to see profile in browser.
39
- * @default false
40
- */
41
- disableClientServer?: boolean;
42
- /**
43
- * sdk instance of outside.
44
- */
45
- sdkInstance?: RsdoctorSDK;
46
- /**
47
- * Whether to turn on some characteristic analysis capabilities, such as: the support for the BannerPlugin.
48
- */
49
- supports?: ISupport;
50
- /**
51
- * The port of the Rsdoctor server.
52
- */
53
- port?: number;
54
- /**
55
- * Options to control the log printing.
56
- */
57
- printLog?: SDK.IPrintLog;
58
- /**
59
- * Options to control brief mode reports.
60
- */
61
- brief?: SDK.BriefConfig;
62
- /**
63
- * The name of inner rsdoctor's client package, used by inner-rsdoctor.
64
- * @default false
65
- */
66
- innerClientPath?: string;
67
- output?: {
68
- /**
69
- * The directory where the report files will be output.
70
- */
71
- reportDir?: string;
72
- /**
73
- * Control the Rsdoctor reporter codes records.
74
- */
75
- reportCodeType?: IReportCodeType | undefined;
76
- /**
77
- * Configure whether to compress data.
78
- * @default false
79
- */
80
- compressData?: boolean;
81
- };
82
- }
83
- export interface RsdoctorMultiplePluginOptions<Rules extends LinterType.ExtendRuleData[] = LinterType.ExtendRuleData[]> extends Omit<RsdoctorWebpackPluginOptions<Rules>, 'sdkInstance'>, Pick<ConstructorParameters<typeof RsdoctorPrimarySDK>[0], 'stage'> {
1
+ import type { RsdoctorPrimarySDK } from '@rsdoctor/sdk';
2
+ import type { Linter, Linter as LinterType, Plugin, SDK } from '@rsdoctor/types';
3
+ export interface RsdoctorMultiplePluginOptions<Rules extends LinterType.ExtendRuleData[] = LinterType.ExtendRuleData[]> extends Omit<Plugin.RsdoctorWebpackPluginOptions<Rules>, 'sdkInstance'>, Pick<ConstructorParameters<typeof RsdoctorPrimarySDK>[0], 'stage'> {
84
4
  /**
85
5
  * name of builder
86
6
  */
87
7
  name?: string;
88
8
  }
89
- interface ISupport {
90
- banner?: boolean;
91
- parseBundle?: boolean;
92
- generateTileGraph?: boolean;
93
- gzip?: boolean;
94
- }
95
- export interface RsdoctorPluginOptionsNormalized<Rules extends LinterType.ExtendRuleData[] = []> extends Common.DeepRequired<Omit<RsdoctorWebpackPluginOptions<Rules>, 'sdkInstance' | 'linter' | 'output' | 'supports' | 'port' | 'brief'>> {
96
- features: Common.DeepRequired<Plugin.RsdoctorWebpackPluginFeatures>;
97
- linter: Required<LinterType.Options<Rules, InternalRules>>;
98
- sdkInstance?: RsdoctorSDK;
99
- output: {
100
- reportCodeType: SDK.ToDataType;
101
- reportDir: string;
102
- compressData: boolean;
103
- };
104
- port?: number;
105
- supports: ISupport;
106
- brief: SDK.BriefConfig;
107
- }
108
9
  export interface BasePluginInstance<T extends Plugin.BaseCompiler> {
109
10
  apply: (compiler: T) => void;
110
11
  [k: string]: any;
@@ -115,8 +16,8 @@ export interface InternalPlugin<T extends Plugin.BaseCompiler, Rules extends Lin
115
16
  }
116
17
  export interface RsdoctorPluginInstance<T extends Plugin.BaseCompiler, Rules extends LinterType.ExtendRuleData[] = []> extends BasePluginInstance<T> {
117
18
  readonly name: string;
118
- readonly options: RsdoctorPluginOptionsNormalized<Rules>;
119
- readonly sdk: RsdoctorSDK;
19
+ readonly options: Plugin.RsdoctorPluginOptionsNormalized<Rules>;
20
+ readonly sdk: SDK.RsdoctorBuilderSDKInstance;
120
21
  readonly isRsdoctorPlugin: boolean;
121
22
  _modulesGraphApplied?: boolean;
122
23
  chunkGraph?: SDK.ChunkGraphInstance;
@@ -139,14 +40,12 @@ export interface RsdoctorRspackPluginExperiments {
139
40
  export interface RsdoctorRspackPluginExperimentsNormalized {
140
41
  enableNativePlugin?: NativePluginConfig;
141
42
  }
142
- export interface RsdoctorRspackPluginOptions<Rules extends LinterType.ExtendRuleData[]> extends RsdoctorWebpackPluginOptions<Rules> {
43
+ export interface RsdoctorRspackPluginOptions<Rules extends LinterType.ExtendRuleData[]> extends Plugin.RsdoctorWebpackPluginOptions<Rules> {
143
44
  /**
144
45
  * The experiments of the Rsdoctor Rspack plugin.
145
46
  */
146
47
  experiments?: RsdoctorRspackPluginExperiments;
147
48
  }
148
- export type RsdoctorRspackPluginOptionsNormalized<Rules extends Linter.ExtendRuleData[]> = RsdoctorPluginOptionsNormalized<Rules> & {
49
+ export type RsdoctorRspackPluginOptionsNormalized<Rules extends Linter.ExtendRuleData[]> = Plugin.RsdoctorPluginOptionsNormalized<Rules> & {
149
50
  experiments?: RsdoctorRspackPluginExperimentsNormalized;
150
51
  };
151
- export {};
152
- //# sourceMappingURL=plugin.d.ts.map
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.r = (exports1)=>{
5
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
- value: 'Module'
7
- });
8
- Object.defineProperty(exports1, '__esModule', {
9
- value: true
10
- });
11
- };
12
- })();
13
- var __webpack_exports__ = {};
14
- __webpack_require__.r(__webpack_exports__);
15
- for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
- Object.defineProperty(exports, '__esModule', {
17
- value: true
18
- });
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.r = (exports1)=>{
5
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
+ value: 'Module'
7
+ });
8
+ Object.defineProperty(exports1, '__esModule', {
9
+ value: true
10
+ });
11
+ };
12
+ })();
13
+ var __webpack_exports__ = {};
14
+ __webpack_require__.r(__webpack_exports__);
15
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
+ Object.defineProperty(exports, '__esModule', {
17
+ value: true
18
+ });
@@ -5,4 +5,3 @@ export interface Rule extends RuleSetRule {
5
5
  */
6
6
  loaders: RuleSetRule['use'];
7
7
  }
8
- //# sourceMappingURL=rules.d.ts.map
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.r = (exports1)=>{
5
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
6
- value: 'Module'
7
- });
8
- Object.defineProperty(exports1, '__esModule', {
9
- value: true
10
- });
11
- };
12
- })();
13
- var __webpack_exports__ = {};
14
- __webpack_require__.r(__webpack_exports__);
15
- for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
16
- Object.defineProperty(exports, '__esModule', {
17
- value: true
18
- });
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
package/package.json CHANGED
@@ -1,42 +1,43 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "1.2.3",
3
+ "version": "1.2.4-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
7
7
  "directory": "packages/core"
8
8
  },
9
9
  "license": "MIT",
10
- "main": "dist/index.js",
11
- "module": "dist/index.js",
10
+ "main": "dist/index.cjs",
12
11
  "types": "dist/index.d.ts",
13
12
  "files": [
14
13
  "dist"
15
14
  ],
15
+ "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist/index.d.ts",
19
- "default": "./dist/index.js"
19
+ "import": "./dist/index.js",
20
+ "default": "./dist/index.cjs"
20
21
  },
21
22
  "./build-utils": {
22
23
  "types": "./dist/build-utils/build/index.d.ts",
23
- "default": "./dist/build-utils/build/index.js"
24
- },
25
- "./common-utils": {
26
- "types": "./dist/build-utils/common/index.d.ts",
27
- "default": "./dist/build-utils/common/index.js"
24
+ "import": "./dist/build-utils/build/index.js",
25
+ "default": "./dist/build-utils/build/index.cjs"
28
26
  },
29
27
  "./plugins": {
30
28
  "types": "./dist/inner-plugins/index.d.ts",
31
- "default": "./dist/inner-plugins/index.js"
29
+ "import": "./dist/inner-plugins/index.js",
30
+ "default": "./dist/inner-plugins/index.cjs"
32
31
  },
33
32
  "./rules": {
34
33
  "types": "./dist/rules/index.d.ts",
35
- "default": "./dist/rules/index.js"
34
+ "import": "./dist/rules/index.js",
35
+ "default": "./dist/rules/index.cjs"
36
36
  },
37
37
  "./types": {
38
38
  "types": "./dist/types/index.d.ts",
39
- "default": "./dist/types/index.js"
39
+ "import": "./dist/types/index.js",
40
+ "default": "./dist/types/index.cjs"
40
41
  }
41
42
  },
42
43
  "typesVersions": {
@@ -47,9 +48,6 @@
47
48
  "build-utils": [
48
49
  "./dist/build-utils/build/index.d.ts"
49
50
  ],
50
- "common-utils": [
51
- "./dist/build-utils/common/index.d.ts"
52
- ],
53
51
  "plugins": [
54
52
  "./dist/inner-plugins/index.d.ts"
55
53
  ],
@@ -57,41 +55,39 @@
57
55
  "./dist/rules/index.d.ts"
58
56
  ],
59
57
  "types": [
60
- "./dist/types/types.d.ts"
58
+ "./dist/types/index.d.ts"
61
59
  ]
62
60
  }
63
61
  },
64
62
  "dependencies": {
65
- "@rsbuild/plugin-check-syntax": "1.3.0",
66
- "axios": "^1.11.0",
67
63
  "browserslist-load-config": "^1.0.0",
68
- "enhanced-resolve": "5.12.0",
69
- "filesize": "^10.1.6",
70
64
  "fs-extra": "^11.1.1",
71
- "lodash": "^4.17.21",
72
- "path-browserify": "1.0.1",
65
+ "lodash-es": "^4.17.21",
73
66
  "semver": "^7.7.2",
74
67
  "source-map": "^0.7.4",
75
- "@rsdoctor/graph": "1.2.3",
76
- "@rsdoctor/types": "1.2.3",
77
- "@rsdoctor/utils": "1.2.3",
78
- "@rsdoctor/sdk": "1.2.3"
68
+ "@rsdoctor/graph": "1.2.4-beta.0",
69
+ "@rsdoctor/sdk": "1.2.4-beta.0",
70
+ "@rsdoctor/types": "1.2.4-beta.0",
71
+ "@rsdoctor/utils": "1.2.4-beta.0"
79
72
  },
80
73
  "devDependencies": {
81
- "@rslib/core": "^0.11.0",
82
- "@rspack/core": "1.4.11",
74
+ "@rsbuild/plugin-check-syntax": "1.3.0",
75
+ "axios": "^1.12.0",
76
+ "enhanced-resolve": "5.12.0",
77
+ "filesize": "^10.1.6",
78
+ "@rspack/core": "1.5.1",
83
79
  "@types/fs-extra": "^11.0.4",
84
- "@types/lodash": "^4.17.20",
80
+ "@types/lodash-es": "^4.17.12",
85
81
  "@types/node": "^22.8.1",
86
82
  "@types/node-fetch": "^2.6.12",
87
- "@types/path-browserify": "1.0.3",
88
83
  "@types/semver": "^7.7.0",
89
84
  "@types/tapable": "2.2.7",
90
85
  "babel-loader": "10.0.0",
86
+ "prebundle": "1.4.1",
91
87
  "string-loader": "0.0.1",
92
88
  "ts-loader": "^9.5.2",
93
89
  "tslib": "2.8.1",
94
- "typescript": "^5.2.2",
90
+ "typescript": "^5.9.2",
95
91
  "webpack": "^5.97.1",
96
92
  "@scripts/test-helper": "0.1.1"
97
93
  },
@@ -103,6 +99,7 @@
103
99
  "dev": "npm run start",
104
100
  "build": "rslib build",
105
101
  "start": "rslib build -w",
106
- "test": "rstest run"
102
+ "test": "rstest run",
103
+ "prebundle": "prebundle"
107
104
  }
108
105
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"assetsModules.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/assetsModules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,GAAG,CAAC,mBAAmB,EACpC,UAAU,EAAE,GAAG,CAAC,kBAAkB,EAClC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAClC,cAAc,UAAO,iBAStB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunkTransform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/chunkTransform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,WAAW,EAAE,MAAM,CAAC,gBAAgB,wCAGrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/chunks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/chunks/rspack/transform.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,GAAG,CAAC,kBAAkB,EAC1B,aAAa,EAAE,MAAM,CAAC,sBAAsB,QAuC7C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,GAAG,CAAC,kBAAkB,EAC1B,aAAa,EAAE,MAAM,CAAC,sBAAsB,QAmC7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-utils/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"probeLoader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/probeLoader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAO,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAI7D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,gBAAgB,CAChD,UAAU,CAAC,wBAAwB,CAAC,EACpC,EAAE,CA2CH,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"probeLoaderPlugin.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/loader/probeLoaderPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAUzC,qBAAa,iBAAiB;IAC5B,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY;IAoBnC,OAAO,CAAC,cAAc;CAqCvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAazD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,WAS5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/module-graph/rspack/transform.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAuB9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,GAAG,CAAC,mBAAmB,EAC3B,EAAE,EAAE,GAAG,CAAC,kBAAkB,EAC1B,cAAc,EAAE,MAAM,CAAC,uBAAuB,QAgG/C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,GAAG,CAAC,mBAAmB,EAC3B,iBAAiB,EAAE,MAAM,CAAC,0BAA0B,QAUrD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,GAAG,CAAC,mBAAmB,EAC3B,qBAAqB,EAAE,MAAM,CAAC,6BAA6B,QAgB5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAkC,MAAM,GAAG,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAC9B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,GAAG,CAAC,kBAAkB,EAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,oCAQ3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"treeShaking.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/treeShaking.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAuJnD,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,GAAG,CAAC,mBAAmB,EACpC,WAAW,EAAE,MAAM,CAAC,eAAe,2BAyBpC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/module-graph/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAuDtC,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,GAAG,CAAC,cAAc,qCAwB3B;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,GAAG,CAAC,cAAc,qCAkC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../../src/build-utils/build/module-graph/webpack/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAiB9C,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;CACvE;AA6BD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,EAClD,WAAW,CAAC,EAAE,OAAO,CAAC,WAAW,EACjC,MAAM,UAAQ,GACb,GAAG,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAQxC;AA2LD,wBAAsB,8BAA8B,CAClD,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,KAAK,EAAE,GAAG,CAAC,mBAAmB,EAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,oCA0B3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAQ,cAAc,IAAI,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAW/E,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAOA;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,GAAG,SAAgB,GAClB;IACD,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC,6BAA6B,CAAC;IAC5C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;CACrB,CAiBA;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAqBtE;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EAC5D,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GACvB,CAAC,EAAE,CAiFL;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,gBAAgB,WA2BrD;AAoCD,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,MAAM,CAAC,gBAAgB,EAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,UAAO,WAgBd;AACD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,gBAAgB,EACpE,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,MAAM,CAAC,YAAY,EAC7B,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,gBAAgB,KAAK,OAAO,GAC1C,CAAC,EAAE,CA4EL;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,EAC9C,KAAK,EAAE,CACL,GAAG,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAC3B,SAAS,CAAC,EAAE,qBAAqB,KAC9B,IAAI,iDAqFV;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM;;EAMvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseBundle.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/parseBundle.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC;;;;;;;;;GASG;AAEH,eAAO,MAAM,WAAW,EAAE,WAsPzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/build/utils/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,MAAM,KAAK,GACf,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAEnE,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,KAAK,EAAE,IAAI,EAAE,CAAC,WAoBjE;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,CAAC,YAAY,EAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,QAQpE;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,CAAC,eAAe,EACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,KAAK,IAAI,QAiBvE"}
@@ -1,6 +0,0 @@
1
- import { SDK } from '@rsdoctor/types';
2
- import { RsdoctorPluginOptionsNormalized } from '@rsdoctor/core/types';
3
- export declare function assetsContents(assetMap: Map<string, {
4
- content: string;
5
- }>, chunkGraph: SDK.ChunkGraphInstance, supports: RsdoctorPluginOptionsNormalized['supports']): void;
6
- //# sourceMappingURL=assetsContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assetsContent.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/assetsContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAKvE,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC1C,UAAU,EAAE,GAAG,CAAC,kBAAkB,EAClC,QAAQ,EAAE,+BAA+B,CAAC,UAAU,CAAC,QAUtD"}
@@ -1,23 +0,0 @@
1
- import { SDK } from '@rsdoctor/types';
2
- import { ParseBundle } from '../../../types';
3
- export type ParsedModuleSizeData = {
4
- [x: string]: {
5
- size: number;
6
- sizeConvert: string;
7
- content: string;
8
- };
9
- };
10
- /**
11
- * The following code is modified based on
12
- * https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/8a3d3f0f40010f2b41ccd28519eda5a44e13da3e/src/analyzer.js#L20
13
- *
14
- * MIT Licensed
15
- * Author th0r
16
- * Copyright JS Foundation and other contributors.
17
- * https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/44bd8d0f9aa3b098e271af220096ea70cc44bc9e/LICENSE
18
- */
19
- export declare function getAssetsModulesData(moduleGraph: SDK.ModuleGraphInstance, chunkGraph: SDK.ChunkGraphInstance, bundleDir: string, opts: {
20
- parseBundle?: ParseBundle;
21
- }, sourceMapSets?: Map<string, string>): Promise<void>;
22
- export declare function transformAssetsModulesData(parsedModulesData: ParsedModuleSizeData, moduleGraph: SDK.ModuleGraphInstance): void;
23
- //# sourceMappingURL=assetsModules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assetsModules.d.ts","sourceRoot":"","sources":["../../../../src/build-utils/common/chunks/assetsModules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACrE,CAAC;AACF;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,GAAG,CAAC,mBAAmB,EACpC,UAAU,EAAE,GAAG,CAAC,kBAAkB,EAClC,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE;IACJ,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,EACD,aAAa,GAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAa,iBAwE/C;AAED,wBAAgB,0BAA0B,CACxC,iBAAiB,EAAE,oBAAoB,EACvC,WAAW,EAAE,GAAG,CAAC,mBAAmB,QAuBrC"}