@rsbuild/core 1.0.0 → 1.0.1-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 (387) hide show
  1. package/README.md +1 -1
  2. package/bin/rsbuild.js +4 -2
  3. package/compiled/autoprefixer/index.d.ts +95 -0
  4. package/compiled/autoprefixer/index.js +7000 -0
  5. package/compiled/autoprefixer/license +20 -0
  6. package/compiled/autoprefixer/package.json +1 -0
  7. package/compiled/browserslist/index.d.ts +201 -0
  8. package/compiled/browserslist/index.js +1867 -0
  9. package/compiled/browserslist/license +20 -0
  10. package/compiled/browserslist/package.json +1 -0
  11. package/compiled/chokidar/index.d.ts +198 -0
  12. package/compiled/chokidar/index.js +5139 -0
  13. package/compiled/chokidar/license +21 -0
  14. package/compiled/chokidar/package.json +1 -0
  15. package/compiled/commander/{typings/index.d.ts → index.d.ts} +184 -102
  16. package/compiled/commander/index.js +2190 -1
  17. package/compiled/commander/package.json +1 -1
  18. package/compiled/connect/index.d.ts +90 -0
  19. package/compiled/connect/index.js +1240 -0
  20. package/compiled/connect/license +25 -0
  21. package/compiled/connect/package.json +1 -0
  22. package/compiled/connect-history-api-fallback/index.js +149 -1
  23. package/compiled/connect-history-api-fallback/package.json +1 -1
  24. package/compiled/css-loader/api.js +85 -0
  25. package/compiled/css-loader/getUrl.js +26 -0
  26. package/compiled/css-loader/index.d.ts +1 -0
  27. package/compiled/css-loader/index.js +7541 -0
  28. package/compiled/css-loader/license +20 -0
  29. package/compiled/css-loader/noSourceMaps.js +5 -0
  30. package/compiled/css-loader/package.json +1 -0
  31. package/compiled/css-loader/semver.js +1 -0
  32. package/compiled/css-loader/sourceMaps.js +16 -0
  33. package/compiled/dotenv/{lib/main.d.ts → index.d.ts} +25 -24
  34. package/compiled/dotenv/index.js +336 -1
  35. package/compiled/dotenv/package.json +1 -1
  36. package/compiled/dotenv-expand/index.d.ts +52 -0
  37. package/compiled/dotenv-expand/index.js +105 -1
  38. package/compiled/dotenv-expand/package.json +1 -1
  39. package/compiled/html-rspack-plugin/default_index.ejs +9 -0
  40. package/compiled/html-rspack-plugin/index.d.ts +284 -0
  41. package/compiled/html-rspack-plugin/index.js +1574 -0
  42. package/compiled/html-rspack-plugin/license +20 -0
  43. package/compiled/html-rspack-plugin/loader.js +173 -0
  44. package/compiled/html-rspack-plugin/package.json +1 -0
  45. package/compiled/http-compression/index.js +134 -1
  46. package/compiled/http-compression/package.json +1 -1
  47. package/compiled/http-proxy-middleware/index.d.ts +315 -0
  48. package/compiled/http-proxy-middleware/index.js +5251 -0
  49. package/compiled/http-proxy-middleware/license +22 -0
  50. package/compiled/http-proxy-middleware/package.json +1 -0
  51. package/compiled/jiti/index.d.ts +1 -0
  52. package/compiled/jiti/index.js +254 -1748
  53. package/compiled/jiti/package.json +1 -1
  54. package/compiled/launch-editor-middleware/index.d.ts +1 -0
  55. package/compiled/launch-editor-middleware/index.js +696 -0
  56. package/compiled/launch-editor-middleware/license +21 -0
  57. package/compiled/launch-editor-middleware/package.json +1 -0
  58. package/compiled/on-finished/index.d.ts +13 -0
  59. package/compiled/on-finished/index.js +197 -0
  60. package/compiled/on-finished/license +23 -0
  61. package/compiled/on-finished/package.json +1 -0
  62. package/compiled/open/index.d.ts +1 -153
  63. package/compiled/open/index.js +409 -1
  64. package/compiled/open/package.json +1 -1
  65. package/compiled/picocolors/index.d.ts +34 -0
  66. package/compiled/picocolors/index.js +97 -0
  67. package/compiled/picocolors/license +15 -0
  68. package/compiled/picocolors/package.json +1 -0
  69. package/compiled/postcss-load-config/index.d.ts +1 -0
  70. package/compiled/postcss-load-config/index.js +751 -0
  71. package/compiled/postcss-load-config/license +20 -0
  72. package/compiled/postcss-load-config/package.json +1 -0
  73. package/compiled/postcss-loader/index.d.ts +1 -0
  74. package/compiled/postcss-loader/index.js +8423 -0
  75. package/compiled/postcss-loader/license +20 -0
  76. package/compiled/postcss-loader/package.json +1 -0
  77. package/compiled/postcss-loader/semver.js +1 -0
  78. package/compiled/postcss-value-parser/index.d.ts +1 -0
  79. package/compiled/postcss-value-parser/index.js +495 -0
  80. package/compiled/postcss-value-parser/license +22 -0
  81. package/compiled/postcss-value-parser/package.json +1 -0
  82. package/compiled/rslog/index.d.ts +66 -0
  83. package/compiled/rslog/index.js +334 -0
  84. package/compiled/rslog/license +21 -0
  85. package/compiled/rslog/package.json +1 -0
  86. package/compiled/rspack-chain/index.d.ts +601 -0
  87. package/compiled/rspack-chain/index.js +1702 -0
  88. package/compiled/rspack-chain/license +373 -0
  89. package/compiled/rspack-chain/package.json +1 -0
  90. package/compiled/rspack-manifest-plugin/index.d.ts +1 -0
  91. package/compiled/rspack-manifest-plugin/index.js +5884 -0
  92. package/compiled/rspack-manifest-plugin/license +21 -0
  93. package/compiled/rspack-manifest-plugin/package.json +1 -0
  94. package/compiled/sirv/index.d.ts +1 -0
  95. package/compiled/sirv/index.js +701 -1
  96. package/compiled/sirv/package.json +1 -1
  97. package/compiled/style-loader/index.d.ts +1 -0
  98. package/compiled/style-loader/index.js +427 -0
  99. package/compiled/style-loader/license +20 -0
  100. package/compiled/style-loader/package.json +1 -0
  101. package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
  102. package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
  103. package/compiled/style-loader/runtime/insertBySelector.js +34 -0
  104. package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
  105. package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
  106. package/compiled/style-loader/runtime/isOldIE.js +17 -0
  107. package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
  108. package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
  109. package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
  110. package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
  111. package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
  112. package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
  113. package/compiled/webpack-bundle-analyzer/index.d.ts +160 -0
  114. package/compiled/webpack-bundle-analyzer/index.js +13352 -0
  115. package/compiled/webpack-bundle-analyzer/license +20 -0
  116. package/compiled/webpack-bundle-analyzer/package.json +1 -0
  117. package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
  118. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
  119. package/compiled/webpack-dev-middleware/index.d.ts +1 -0
  120. package/compiled/webpack-dev-middleware/index.js +5672 -0
  121. package/compiled/webpack-dev-middleware/license +20 -0
  122. package/compiled/webpack-dev-middleware/package.json +1 -0
  123. package/compiled/webpack-dev-middleware/schema-utils.js +1 -0
  124. package/compiled/webpack-merge/index.d.ts +31 -0
  125. package/compiled/webpack-merge/index.js +1200 -0
  126. package/compiled/webpack-merge/license +20 -0
  127. package/compiled/webpack-merge/package.json +1 -0
  128. package/compiled/ws/index.d.ts +402 -0
  129. package/compiled/ws/index.js +3153 -0
  130. package/compiled/ws/license +20 -0
  131. package/compiled/ws/package.json +1 -0
  132. package/dist/client/hmr.js +249 -405
  133. package/dist/client/overlay.js +221 -0
  134. package/dist/{rspack-provider/plugins/basic.js → ignoreCssLoader.cjs} +12 -14
  135. package/dist/index.cjs +9004 -0
  136. package/dist/index.js +9075 -16
  137. package/dist/transformLoader.cjs +54 -0
  138. package/dist/transformRawLoader.cjs +65 -0
  139. package/dist-types/cli/commands.d.ts +20 -0
  140. package/dist-types/cli/init.d.ts +6 -0
  141. package/dist-types/cli/prepare.d.ts +1 -0
  142. package/dist-types/client/format.d.ts +5 -0
  143. package/dist-types/client/hmr.d.ts +1 -0
  144. package/dist-types/client/overlay.d.ts +1 -0
  145. package/dist-types/config.d.ts +63 -0
  146. package/dist-types/configChain.d.ts +162 -0
  147. package/dist-types/constants.d.ts +32 -0
  148. package/dist-types/createContext.d.ts +11 -0
  149. package/dist-types/createRsbuild.d.ts +2 -0
  150. package/dist-types/helpers/path.d.ts +10 -0
  151. package/dist-types/helpers.d.ts +57 -0
  152. package/dist-types/index.d.ts +24 -0
  153. package/dist-types/initHooks.d.ts +23 -0
  154. package/dist-types/initPlugins.d.ts +6 -0
  155. package/dist-types/internal.d.ts +20 -0
  156. package/dist-types/loadEnv.d.ts +27 -0
  157. package/dist-types/loader/ignoreCssLoader.d.ts +2 -0
  158. package/dist-types/loader/transformLoader.d.ts +5 -0
  159. package/dist-types/loader/transformRawLoader.d.ts +3 -0
  160. package/dist-types/logger.d.ts +4 -0
  161. package/dist-types/mergeConfig.d.ts +2 -0
  162. package/dist-types/package.json +1 -0
  163. package/dist-types/pluginHelper.d.ts +12 -0
  164. package/dist-types/pluginManager.d.ts +7 -0
  165. package/{dist → dist-types}/plugins/asset.d.ts +1 -1
  166. package/dist-types/plugins/basic.d.ts +5 -0
  167. package/dist-types/plugins/bundleAnalyzer.d.ts +2 -0
  168. package/dist-types/plugins/cache.d.ts +2 -0
  169. package/dist-types/plugins/cleanOutput.d.ts +2 -0
  170. package/dist-types/plugins/css.d.ts +10 -0
  171. package/dist-types/plugins/define.d.ts +2 -0
  172. package/dist-types/plugins/entry.d.ts +2 -0
  173. package/dist-types/plugins/externals.d.ts +2 -0
  174. package/{dist → dist-types}/plugins/fileSize.d.ts +1 -1
  175. package/dist-types/plugins/html.d.ts +9 -0
  176. package/dist-types/plugins/inlineChunk.d.ts +2 -0
  177. package/dist-types/plugins/lazyCompilation.d.ts +2 -0
  178. package/dist-types/plugins/manifest.d.ts +2 -0
  179. package/dist-types/plugins/minimize.d.ts +10 -0
  180. package/dist-types/plugins/moduleFederation.d.ts +2 -0
  181. package/dist-types/plugins/moment.d.ts +2 -0
  182. package/dist-types/plugins/nodeAddons.d.ts +2 -0
  183. package/dist-types/plugins/nonce.d.ts +2 -0
  184. package/{dist/plugins/startUrl.d.ts → dist-types/plugins/open.d.ts} +2 -1
  185. package/dist-types/plugins/output.d.ts +2 -0
  186. package/{dist → dist-types}/plugins/performance.d.ts +1 -1
  187. package/dist-types/plugins/progress.d.ts +2 -0
  188. package/dist-types/plugins/resolve.d.ts +2 -0
  189. package/dist-types/plugins/resourceHints.d.ts +2 -0
  190. package/dist-types/plugins/rsdoctor.d.ts +2 -0
  191. package/dist-types/plugins/rspackProfile.d.ts +2 -0
  192. package/dist-types/plugins/server.d.ts +2 -0
  193. package/dist-types/plugins/splitChunks.d.ts +4 -0
  194. package/dist-types/plugins/sri.d.ts +2 -0
  195. package/dist-types/plugins/swc.d.ts +7 -0
  196. package/dist-types/plugins/target.d.ts +2 -0
  197. package/dist-types/plugins/wasm.d.ts +2 -0
  198. package/dist-types/provider/build.d.ts +3 -0
  199. package/dist-types/provider/createCompiler.d.ts +33 -0
  200. package/dist-types/provider/initConfigs.d.ts +10 -0
  201. package/dist-types/provider/inspectConfig.d.ts +6 -0
  202. package/dist-types/provider/provider.d.ts +2 -0
  203. package/dist-types/provider/rspackConfig.d.ts +8 -0
  204. package/dist-types/rspack/HtmlAppIconPlugin.d.ts +13 -0
  205. package/dist-types/rspack/HtmlBasicPlugin.d.ts +37 -0
  206. package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +29 -0
  207. package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +29 -0
  208. package/dist-types/rspack/preload/helpers/determineAsValue.d.ts +22 -0
  209. package/dist-types/rspack/preload/helpers/doesChunkBelongToHtml.d.ts +29 -0
  210. package/dist-types/rspack/preload/helpers/extractChunks.d.ts +28 -0
  211. package/dist-types/rspack/preload/helpers/index.d.ts +4 -0
  212. package/dist-types/rspack/preload/helpers/type.d.ts +13 -0
  213. package/dist-types/server/compilerDevMiddleware.d.ts +30 -0
  214. package/dist-types/server/devMiddleware.d.ts +39 -0
  215. package/dist-types/server/devServer.d.ts +50 -0
  216. package/dist-types/server/environment.d.ts +7 -0
  217. package/dist-types/server/getDevMiddlewares.d.ts +25 -0
  218. package/dist-types/server/helper.d.ts +59 -0
  219. package/dist-types/server/httpServer.d.ts +8 -0
  220. package/dist-types/server/middlewares.d.ts +22 -0
  221. package/dist-types/server/prodServer.d.ts +25 -0
  222. package/dist-types/server/proxy.d.ts +6 -0
  223. package/dist-types/server/restart.d.ts +9 -0
  224. package/dist-types/server/runner/asModule.d.ts +2 -0
  225. package/dist-types/server/runner/basic.d.ts +25 -0
  226. package/dist-types/server/runner/cjs.d.ts +10 -0
  227. package/dist-types/server/runner/esm.d.ts +6 -0
  228. package/dist-types/server/runner/index.d.ts +8 -0
  229. package/dist-types/server/runner/type.d.ts +36 -0
  230. package/dist-types/server/socketServer.d.ts +22 -0
  231. package/dist-types/server/watchFiles.d.ts +11 -0
  232. package/dist-types/types/config/dev.d.ts +88 -0
  233. package/dist-types/types/config/html.d.ts +107 -0
  234. package/dist-types/types/config/index.d.ts +134 -0
  235. package/dist-types/types/config/output.d.ts +297 -0
  236. package/dist-types/types/config/performance.d.ts +123 -0
  237. package/dist-types/types/config/security.d.ts +18 -0
  238. package/dist-types/types/config/server.d.ts +106 -0
  239. package/dist-types/types/config/source.d.ts +79 -0
  240. package/dist-types/types/config/tools.d.ts +85 -0
  241. package/dist-types/types/context.d.ts +38 -0
  242. package/dist-types/types/hooks.d.ts +125 -0
  243. package/dist-types/types/index.d.ts +9 -0
  244. package/dist-types/types/plugin.d.ts +197 -0
  245. package/dist-types/types/rsbuild.d.ts +109 -0
  246. package/dist-types/types/rspack.d.ts +28 -0
  247. package/dist-types/types/stats.d.ts +17 -0
  248. package/dist-types/types/thirdParty.d.ts +168 -0
  249. package/dist-types/types/utils.d.ts +13 -0
  250. package/package.json +73 -43
  251. package/types.d.ts +36 -4
  252. package/compiled/dotenv-expand/lib/main.d.ts +0 -29
  253. package/compiled/jiti/types/jiti.d.ts +0 -19
  254. package/compiled/jiti/types/types.d.ts +0 -31
  255. package/compiled/open/license +0 -9
  256. package/compiled/sirv/sirv.d.ts +0 -27
  257. package/dist/cli/commands.d.ts +0 -20
  258. package/dist/cli/commands.js +0 -131
  259. package/dist/cli/config.d.ts +0 -9
  260. package/dist/cli/config.js +0 -110
  261. package/dist/cli/prepare.d.ts +0 -1
  262. package/dist/cli/prepare.js +0 -43
  263. package/dist/client/hmr/createSocketUrl.d.ts +0 -16
  264. package/dist/client/hmr/index.d.ts +0 -1
  265. package/dist/createRsbuild.d.ts +0 -10
  266. package/dist/createRsbuild.js +0 -100
  267. package/dist/index.d.ts +0 -10
  268. package/dist/loadEnv.d.ts +0 -5
  269. package/dist/loadEnv.js +0 -58
  270. package/dist/plugins/asset.js +0 -73
  271. package/dist/plugins/bundleAnalyzer.d.ts +0 -2
  272. package/dist/plugins/bundleAnalyzer.js +0 -59
  273. package/dist/plugins/cache.d.ts +0 -2
  274. package/dist/plugins/cache.js +0 -112
  275. package/dist/plugins/cleanOutput.d.ts +0 -2
  276. package/dist/plugins/cleanOutput.js +0 -47
  277. package/dist/plugins/define.d.ts +0 -2
  278. package/dist/plugins/define.js +0 -47
  279. package/dist/plugins/devtool.d.ts +0 -2
  280. package/dist/plugins/devtool.js +0 -46
  281. package/dist/plugins/entry.d.ts +0 -2
  282. package/dist/plugins/entry.js +0 -53
  283. package/dist/plugins/externals.d.ts +0 -2
  284. package/dist/plugins/externals.js +0 -48
  285. package/dist/plugins/fileSize.js +0 -158
  286. package/dist/plugins/html.d.ts +0 -15
  287. package/dist/plugins/html.js +0 -270
  288. package/dist/plugins/index.d.ts +0 -2
  289. package/dist/plugins/index.js +0 -61
  290. package/dist/plugins/inlineChunk.d.ts +0 -2
  291. package/dist/plugins/inlineChunk.js +0 -76
  292. package/dist/plugins/moment.d.ts +0 -2
  293. package/dist/plugins/moment.js +0 -68
  294. package/dist/plugins/networkPerformance.d.ts +0 -2
  295. package/dist/plugins/networkPerformance.js +0 -58
  296. package/dist/plugins/nodeAddons.d.ts +0 -2
  297. package/dist/plugins/nodeAddons.js +0 -70
  298. package/dist/plugins/performance.js +0 -63
  299. package/dist/plugins/preloadOrPrefetch.d.ts +0 -2
  300. package/dist/plugins/preloadOrPrefetch.js +0 -61
  301. package/dist/plugins/splitChunks.d.ts +0 -2
  302. package/dist/plugins/splitChunks.js +0 -228
  303. package/dist/plugins/startUrl.js +0 -148
  304. package/dist/plugins/target.d.ts +0 -2
  305. package/dist/plugins/target.js +0 -53
  306. package/dist/plugins/toml.d.ts +0 -2
  307. package/dist/plugins/toml.js +0 -36
  308. package/dist/plugins/wasm.d.ts +0 -2
  309. package/dist/plugins/wasm.js +0 -51
  310. package/dist/plugins/yaml.d.ts +0 -2
  311. package/dist/plugins/yaml.js +0 -36
  312. package/dist/rspack-plugins/HtmlBasicPlugin.d.ts +0 -19
  313. package/dist/rspack-plugins/HtmlBasicPlugin.js +0 -87
  314. package/dist/rspack-plugins/RemoveCssSourcemapPlugin.d.ts +0 -8
  315. package/dist/rspack-plugins/RemoveCssSourcemapPlugin.js +0 -51
  316. package/dist/rspack-provider/config.d.ts +0 -9
  317. package/dist/rspack-provider/config.js +0 -47
  318. package/dist/rspack-provider/core/build.d.ts +0 -19
  319. package/dist/rspack-provider/core/build.js +0 -79
  320. package/dist/rspack-provider/core/createCompiler.d.ts +0 -11
  321. package/dist/rspack-provider/core/createCompiler.js +0 -112
  322. package/dist/rspack-provider/core/createContext.d.ts +0 -13
  323. package/dist/rspack-provider/core/createContext.js +0 -133
  324. package/dist/rspack-provider/core/devMiddleware.d.ts +0 -3
  325. package/dist/rspack-provider/core/devMiddleware.js +0 -65
  326. package/dist/rspack-provider/core/initConfigs.d.ts +0 -14
  327. package/dist/rspack-provider/core/initConfigs.js +0 -78
  328. package/dist/rspack-provider/core/initHooks.d.ts +0 -19
  329. package/dist/rspack-provider/core/initHooks.js +0 -45
  330. package/dist/rspack-provider/core/initPlugins.d.ts +0 -9
  331. package/dist/rspack-provider/core/initPlugins.js +0 -87
  332. package/dist/rspack-provider/core/inspectConfig.d.ts +0 -19
  333. package/dist/rspack-provider/core/inspectConfig.js +0 -81
  334. package/dist/rspack-provider/core/rspackConfig.d.ts +0 -9
  335. package/dist/rspack-provider/core/rspackConfig.js +0 -132
  336. package/dist/rspack-provider/css-modules-typescript-pre-loader/index.d.ts +0 -6
  337. package/dist/rspack-provider/css-modules-typescript-pre-loader/index.js +0 -84
  338. package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.d.ts +0 -11
  339. package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.js +0 -67
  340. package/dist/rspack-provider/index.d.ts +0 -5
  341. package/dist/rspack-provider/index.js +0 -38
  342. package/dist/rspack-provider/plugins/basic.d.ts +0 -5
  343. package/dist/rspack-provider/plugins/css.d.ts +0 -29
  344. package/dist/rspack-provider/plugins/css.js +0 -199
  345. package/dist/rspack-provider/plugins/hmr.d.ts +0 -2
  346. package/dist/rspack-provider/plugins/hmr.js +0 -38
  347. package/dist/rspack-provider/plugins/less.d.ts +0 -2
  348. package/dist/rspack-provider/plugins/less.js +0 -78
  349. package/dist/rspack-provider/plugins/minimize.d.ts +0 -5
  350. package/dist/rspack-provider/plugins/minimize.js +0 -77
  351. package/dist/rspack-provider/plugins/output.d.ts +0 -2
  352. package/dist/rspack-provider/plugins/output.js +0 -65
  353. package/dist/rspack-provider/plugins/progress.d.ts +0 -2
  354. package/dist/rspack-provider/plugins/progress.js +0 -61
  355. package/dist/rspack-provider/plugins/resolve.d.ts +0 -2
  356. package/dist/rspack-provider/plugins/resolve.js +0 -54
  357. package/dist/rspack-provider/plugins/rspackProfile.d.ts +0 -5
  358. package/dist/rspack-provider/plugins/rspackProfile.js +0 -107
  359. package/dist/rspack-provider/plugins/sass.d.ts +0 -2
  360. package/dist/rspack-provider/plugins/sass.js +0 -83
  361. package/dist/rspack-provider/plugins/swc.d.ts +0 -7
  362. package/dist/rspack-provider/plugins/swc.js +0 -147
  363. package/dist/rspack-provider/plugins/transition.d.ts +0 -5
  364. package/dist/rspack-provider/plugins/transition.js +0 -42
  365. package/dist/rspack-provider/provider.d.ts +0 -8
  366. package/dist/rspack-provider/provider.js +0 -117
  367. package/dist/rspack-provider/shared.d.ts +0 -8
  368. package/dist/rspack-provider/shared.js +0 -116
  369. package/dist/server/dev-middleware/index.d.ts +0 -24
  370. package/dist/server/dev-middleware/index.js +0 -91
  371. package/dist/server/dev-middleware/socketServer.d.ts +0 -22
  372. package/dist/server/dev-middleware/socketServer.js +0 -164
  373. package/dist/server/devServer.d.ts +0 -34
  374. package/dist/server/devServer.js +0 -252
  375. package/dist/server/index.d.ts +0 -2
  376. package/dist/server/index.js +0 -31
  377. package/dist/server/middlewares.d.ts +0 -9
  378. package/dist/server/middlewares.js +0 -115
  379. package/dist/server/prodServer.d.ts +0 -33
  380. package/dist/server/prodServer.js +0 -197
  381. package/dist/server/proxy.d.ts +0 -9
  382. package/dist/server/proxy.js +0 -90
  383. package/dist/server/restart.d.ts +0 -11
  384. package/dist/server/restart.js +0 -65
  385. package/dist/types.d.ts +0 -19
  386. package/dist/types.js +0 -16
  387. package/static/template.html +0 -7
@@ -0,0 +1,20 @@
1
+ Copyright JS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"postcss-loader","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.1.1","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1 @@
1
+ module.exports.satisfies = () => true;
@@ -0,0 +1 @@
1
+ export = any;
@@ -0,0 +1,495 @@
1
+ (() => {
2
+ var __webpack_modules__ = {
3
+ 555: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
+ var parse = __nccwpck_require__(108);
5
+ var walk = __nccwpck_require__(629);
6
+ var stringify = __nccwpck_require__(377);
7
+ function ValueParser(value) {
8
+ if (this instanceof ValueParser) {
9
+ this.nodes = parse(value);
10
+ return this;
11
+ }
12
+ return new ValueParser(value);
13
+ }
14
+ ValueParser.prototype.toString = function () {
15
+ return Array.isArray(this.nodes) ? stringify(this.nodes) : "";
16
+ };
17
+ ValueParser.prototype.walk = function (cb, bubble) {
18
+ walk(this.nodes, cb, bubble);
19
+ return this;
20
+ };
21
+ ValueParser.unit = __nccwpck_require__(419);
22
+ ValueParser.walk = walk;
23
+ ValueParser.stringify = stringify;
24
+ module.exports = ValueParser;
25
+ },
26
+ 108: (module) => {
27
+ var openParentheses = "(".charCodeAt(0);
28
+ var closeParentheses = ")".charCodeAt(0);
29
+ var singleQuote = "'".charCodeAt(0);
30
+ var doubleQuote = '"'.charCodeAt(0);
31
+ var backslash = "\\".charCodeAt(0);
32
+ var slash = "/".charCodeAt(0);
33
+ var comma = ",".charCodeAt(0);
34
+ var colon = ":".charCodeAt(0);
35
+ var star = "*".charCodeAt(0);
36
+ var uLower = "u".charCodeAt(0);
37
+ var uUpper = "U".charCodeAt(0);
38
+ var plus = "+".charCodeAt(0);
39
+ var isUnicodeRange = /^[a-f0-9?-]+$/i;
40
+ module.exports = function (input) {
41
+ var tokens = [];
42
+ var value = input;
43
+ var next,
44
+ quote,
45
+ prev,
46
+ token,
47
+ escape,
48
+ escapePos,
49
+ whitespacePos,
50
+ parenthesesOpenPos;
51
+ var pos = 0;
52
+ var code = value.charCodeAt(pos);
53
+ var max = value.length;
54
+ var stack = [{ nodes: tokens }];
55
+ var balanced = 0;
56
+ var parent;
57
+ var name = "";
58
+ var before = "";
59
+ var after = "";
60
+ while (pos < max) {
61
+ if (code <= 32) {
62
+ next = pos;
63
+ do {
64
+ next += 1;
65
+ code = value.charCodeAt(next);
66
+ } while (code <= 32);
67
+ token = value.slice(pos, next);
68
+ prev = tokens[tokens.length - 1];
69
+ if (code === closeParentheses && balanced) {
70
+ after = token;
71
+ } else if (prev && prev.type === "div") {
72
+ prev.after = token;
73
+ prev.sourceEndIndex += token.length;
74
+ } else if (
75
+ code === comma ||
76
+ code === colon ||
77
+ (code === slash &&
78
+ value.charCodeAt(next + 1) !== star &&
79
+ (!parent ||
80
+ (parent &&
81
+ parent.type === "function" &&
82
+ parent.value !== "calc")))
83
+ ) {
84
+ before = token;
85
+ } else {
86
+ tokens.push({
87
+ type: "space",
88
+ sourceIndex: pos,
89
+ sourceEndIndex: next,
90
+ value: token,
91
+ });
92
+ }
93
+ pos = next;
94
+ } else if (code === singleQuote || code === doubleQuote) {
95
+ next = pos;
96
+ quote = code === singleQuote ? "'" : '"';
97
+ token = { type: "string", sourceIndex: pos, quote };
98
+ do {
99
+ escape = false;
100
+ next = value.indexOf(quote, next + 1);
101
+ if (~next) {
102
+ escapePos = next;
103
+ while (value.charCodeAt(escapePos - 1) === backslash) {
104
+ escapePos -= 1;
105
+ escape = !escape;
106
+ }
107
+ } else {
108
+ value += quote;
109
+ next = value.length - 1;
110
+ token.unclosed = true;
111
+ }
112
+ } while (escape);
113
+ token.value = value.slice(pos + 1, next);
114
+ token.sourceEndIndex = token.unclosed ? next : next + 1;
115
+ tokens.push(token);
116
+ pos = next + 1;
117
+ code = value.charCodeAt(pos);
118
+ } else if (code === slash && value.charCodeAt(pos + 1) === star) {
119
+ next = value.indexOf("*/", pos);
120
+ token = {
121
+ type: "comment",
122
+ sourceIndex: pos,
123
+ sourceEndIndex: next + 2,
124
+ };
125
+ if (next === -1) {
126
+ token.unclosed = true;
127
+ next = value.length;
128
+ token.sourceEndIndex = next;
129
+ }
130
+ token.value = value.slice(pos + 2, next);
131
+ tokens.push(token);
132
+ pos = next + 2;
133
+ code = value.charCodeAt(pos);
134
+ } else if (
135
+ (code === slash || code === star) &&
136
+ parent &&
137
+ parent.type === "function" &&
138
+ parent.value === "calc"
139
+ ) {
140
+ token = value[pos];
141
+ tokens.push({
142
+ type: "word",
143
+ sourceIndex: pos - before.length,
144
+ sourceEndIndex: pos + token.length,
145
+ value: token,
146
+ });
147
+ pos += 1;
148
+ code = value.charCodeAt(pos);
149
+ } else if (code === slash || code === comma || code === colon) {
150
+ token = value[pos];
151
+ tokens.push({
152
+ type: "div",
153
+ sourceIndex: pos - before.length,
154
+ sourceEndIndex: pos + token.length,
155
+ value: token,
156
+ before,
157
+ after: "",
158
+ });
159
+ before = "";
160
+ pos += 1;
161
+ code = value.charCodeAt(pos);
162
+ } else if (openParentheses === code) {
163
+ next = pos;
164
+ do {
165
+ next += 1;
166
+ code = value.charCodeAt(next);
167
+ } while (code <= 32);
168
+ parenthesesOpenPos = pos;
169
+ token = {
170
+ type: "function",
171
+ sourceIndex: pos - name.length,
172
+ value: name,
173
+ before: value.slice(parenthesesOpenPos + 1, next),
174
+ };
175
+ pos = next;
176
+ if (
177
+ name === "url" &&
178
+ code !== singleQuote &&
179
+ code !== doubleQuote
180
+ ) {
181
+ next -= 1;
182
+ do {
183
+ escape = false;
184
+ next = value.indexOf(")", next + 1);
185
+ if (~next) {
186
+ escapePos = next;
187
+ while (value.charCodeAt(escapePos - 1) === backslash) {
188
+ escapePos -= 1;
189
+ escape = !escape;
190
+ }
191
+ } else {
192
+ value += ")";
193
+ next = value.length - 1;
194
+ token.unclosed = true;
195
+ }
196
+ } while (escape);
197
+ whitespacePos = next;
198
+ do {
199
+ whitespacePos -= 1;
200
+ code = value.charCodeAt(whitespacePos);
201
+ } while (code <= 32);
202
+ if (parenthesesOpenPos < whitespacePos) {
203
+ if (pos !== whitespacePos + 1) {
204
+ token.nodes = [
205
+ {
206
+ type: "word",
207
+ sourceIndex: pos,
208
+ sourceEndIndex: whitespacePos + 1,
209
+ value: value.slice(pos, whitespacePos + 1),
210
+ },
211
+ ];
212
+ } else {
213
+ token.nodes = [];
214
+ }
215
+ if (token.unclosed && whitespacePos + 1 !== next) {
216
+ token.after = "";
217
+ token.nodes.push({
218
+ type: "space",
219
+ sourceIndex: whitespacePos + 1,
220
+ sourceEndIndex: next,
221
+ value: value.slice(whitespacePos + 1, next),
222
+ });
223
+ } else {
224
+ token.after = value.slice(whitespacePos + 1, next);
225
+ token.sourceEndIndex = next;
226
+ }
227
+ } else {
228
+ token.after = "";
229
+ token.nodes = [];
230
+ }
231
+ pos = next + 1;
232
+ token.sourceEndIndex = token.unclosed ? next : pos;
233
+ code = value.charCodeAt(pos);
234
+ tokens.push(token);
235
+ } else {
236
+ balanced += 1;
237
+ token.after = "";
238
+ token.sourceEndIndex = pos + 1;
239
+ tokens.push(token);
240
+ stack.push(token);
241
+ tokens = token.nodes = [];
242
+ parent = token;
243
+ }
244
+ name = "";
245
+ } else if (closeParentheses === code && balanced) {
246
+ pos += 1;
247
+ code = value.charCodeAt(pos);
248
+ parent.after = after;
249
+ parent.sourceEndIndex += after.length;
250
+ after = "";
251
+ balanced -= 1;
252
+ stack[stack.length - 1].sourceEndIndex = pos;
253
+ stack.pop();
254
+ parent = stack[balanced];
255
+ tokens = parent.nodes;
256
+ } else {
257
+ next = pos;
258
+ do {
259
+ if (code === backslash) {
260
+ next += 1;
261
+ }
262
+ next += 1;
263
+ code = value.charCodeAt(next);
264
+ } while (
265
+ next < max &&
266
+ !(
267
+ code <= 32 ||
268
+ code === singleQuote ||
269
+ code === doubleQuote ||
270
+ code === comma ||
271
+ code === colon ||
272
+ code === slash ||
273
+ code === openParentheses ||
274
+ (code === star &&
275
+ parent &&
276
+ parent.type === "function" &&
277
+ parent.value === "calc") ||
278
+ (code === slash &&
279
+ parent.type === "function" &&
280
+ parent.value === "calc") ||
281
+ (code === closeParentheses && balanced)
282
+ )
283
+ );
284
+ token = value.slice(pos, next);
285
+ if (openParentheses === code) {
286
+ name = token;
287
+ } else if (
288
+ (uLower === token.charCodeAt(0) ||
289
+ uUpper === token.charCodeAt(0)) &&
290
+ plus === token.charCodeAt(1) &&
291
+ isUnicodeRange.test(token.slice(2))
292
+ ) {
293
+ tokens.push({
294
+ type: "unicode-range",
295
+ sourceIndex: pos,
296
+ sourceEndIndex: next,
297
+ value: token,
298
+ });
299
+ } else {
300
+ tokens.push({
301
+ type: "word",
302
+ sourceIndex: pos,
303
+ sourceEndIndex: next,
304
+ value: token,
305
+ });
306
+ }
307
+ pos = next;
308
+ }
309
+ }
310
+ for (pos = stack.length - 1; pos; pos -= 1) {
311
+ stack[pos].unclosed = true;
312
+ stack[pos].sourceEndIndex = value.length;
313
+ }
314
+ return stack[0].nodes;
315
+ };
316
+ },
317
+ 377: (module) => {
318
+ function stringifyNode(node, custom) {
319
+ var type = node.type;
320
+ var value = node.value;
321
+ var buf;
322
+ var customResult;
323
+ if (custom && (customResult = custom(node)) !== undefined) {
324
+ return customResult;
325
+ } else if (type === "word" || type === "space") {
326
+ return value;
327
+ } else if (type === "string") {
328
+ buf = node.quote || "";
329
+ return buf + value + (node.unclosed ? "" : buf);
330
+ } else if (type === "comment") {
331
+ return "/*" + value + (node.unclosed ? "" : "*/");
332
+ } else if (type === "div") {
333
+ return (node.before || "") + value + (node.after || "");
334
+ } else if (Array.isArray(node.nodes)) {
335
+ buf = stringify(node.nodes, custom);
336
+ if (type !== "function") {
337
+ return buf;
338
+ }
339
+ return (
340
+ value +
341
+ "(" +
342
+ (node.before || "") +
343
+ buf +
344
+ (node.after || "") +
345
+ (node.unclosed ? "" : ")")
346
+ );
347
+ }
348
+ return value;
349
+ }
350
+ function stringify(nodes, custom) {
351
+ var result, i;
352
+ if (Array.isArray(nodes)) {
353
+ result = "";
354
+ for (i = nodes.length - 1; ~i; i -= 1) {
355
+ result = stringifyNode(nodes[i], custom) + result;
356
+ }
357
+ return result;
358
+ }
359
+ return stringifyNode(nodes, custom);
360
+ }
361
+ module.exports = stringify;
362
+ },
363
+ 419: (module) => {
364
+ var minus = "-".charCodeAt(0);
365
+ var plus = "+".charCodeAt(0);
366
+ var dot = ".".charCodeAt(0);
367
+ var exp = "e".charCodeAt(0);
368
+ var EXP = "E".charCodeAt(0);
369
+ function likeNumber(value) {
370
+ var code = value.charCodeAt(0);
371
+ var nextCode;
372
+ if (code === plus || code === minus) {
373
+ nextCode = value.charCodeAt(1);
374
+ if (nextCode >= 48 && nextCode <= 57) {
375
+ return true;
376
+ }
377
+ var nextNextCode = value.charCodeAt(2);
378
+ if (nextCode === dot && nextNextCode >= 48 && nextNextCode <= 57) {
379
+ return true;
380
+ }
381
+ return false;
382
+ }
383
+ if (code === dot) {
384
+ nextCode = value.charCodeAt(1);
385
+ if (nextCode >= 48 && nextCode <= 57) {
386
+ return true;
387
+ }
388
+ return false;
389
+ }
390
+ if (code >= 48 && code <= 57) {
391
+ return true;
392
+ }
393
+ return false;
394
+ }
395
+ module.exports = function (value) {
396
+ var pos = 0;
397
+ var length = value.length;
398
+ var code;
399
+ var nextCode;
400
+ var nextNextCode;
401
+ if (length === 0 || !likeNumber(value)) {
402
+ return false;
403
+ }
404
+ code = value.charCodeAt(pos);
405
+ if (code === plus || code === minus) {
406
+ pos++;
407
+ }
408
+ while (pos < length) {
409
+ code = value.charCodeAt(pos);
410
+ if (code < 48 || code > 57) {
411
+ break;
412
+ }
413
+ pos += 1;
414
+ }
415
+ code = value.charCodeAt(pos);
416
+ nextCode = value.charCodeAt(pos + 1);
417
+ if (code === dot && nextCode >= 48 && nextCode <= 57) {
418
+ pos += 2;
419
+ while (pos < length) {
420
+ code = value.charCodeAt(pos);
421
+ if (code < 48 || code > 57) {
422
+ break;
423
+ }
424
+ pos += 1;
425
+ }
426
+ }
427
+ code = value.charCodeAt(pos);
428
+ nextCode = value.charCodeAt(pos + 1);
429
+ nextNextCode = value.charCodeAt(pos + 2);
430
+ if (
431
+ (code === exp || code === EXP) &&
432
+ ((nextCode >= 48 && nextCode <= 57) ||
433
+ ((nextCode === plus || nextCode === minus) &&
434
+ nextNextCode >= 48 &&
435
+ nextNextCode <= 57))
436
+ ) {
437
+ pos += nextCode === plus || nextCode === minus ? 3 : 2;
438
+ while (pos < length) {
439
+ code = value.charCodeAt(pos);
440
+ if (code < 48 || code > 57) {
441
+ break;
442
+ }
443
+ pos += 1;
444
+ }
445
+ }
446
+ return { number: value.slice(0, pos), unit: value.slice(pos) };
447
+ };
448
+ },
449
+ 629: (module) => {
450
+ module.exports = function walk(nodes, cb, bubble) {
451
+ var i, max, node, result;
452
+ for (i = 0, max = nodes.length; i < max; i += 1) {
453
+ node = nodes[i];
454
+ if (!bubble) {
455
+ result = cb(node, i, nodes);
456
+ }
457
+ if (
458
+ result !== false &&
459
+ node.type === "function" &&
460
+ Array.isArray(node.nodes)
461
+ ) {
462
+ walk(node.nodes, cb, bubble);
463
+ }
464
+ if (bubble) {
465
+ cb(node, i, nodes);
466
+ }
467
+ }
468
+ };
469
+ },
470
+ };
471
+ var __webpack_module_cache__ = {};
472
+ function __nccwpck_require__(moduleId) {
473
+ var cachedModule = __webpack_module_cache__[moduleId];
474
+ if (cachedModule !== undefined) {
475
+ return cachedModule.exports;
476
+ }
477
+ var module = (__webpack_module_cache__[moduleId] = { exports: {} });
478
+ var threw = true;
479
+ try {
480
+ __webpack_modules__[moduleId](
481
+ module,
482
+ module.exports,
483
+ __nccwpck_require__,
484
+ );
485
+ threw = false;
486
+ } finally {
487
+ if (threw) delete __webpack_module_cache__[moduleId];
488
+ }
489
+ return module.exports;
490
+ }
491
+ if (typeof __nccwpck_require__ !== "undefined")
492
+ __nccwpck_require__.ab = __dirname + "/";
493
+ var __webpack_exports__ = __nccwpck_require__(555);
494
+ module.exports = __webpack_exports__;
495
+ })();
@@ -0,0 +1,22 @@
1
+ Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"postcss-value-parser","author":"Bogdan Chadkin <trysound@yandex.ru>","version":"4.2.0","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,66 @@
1
+ type ColorFn = (input: string | number | null | undefined) => string;
2
+
3
+ declare let LOG_TYPES: {
4
+ error: {
5
+ label: string;
6
+ level: "error";
7
+ color: ColorFn;
8
+ };
9
+ warn: {
10
+ label: string;
11
+ level: "warn";
12
+ color: ColorFn;
13
+ };
14
+ info: {
15
+ label: string;
16
+ level: "info";
17
+ color: ColorFn;
18
+ };
19
+ start: {
20
+ label: string;
21
+ level: "info";
22
+ color: ColorFn;
23
+ };
24
+ ready: {
25
+ label: string;
26
+ level: "info";
27
+ color: ColorFn;
28
+ };
29
+ success: {
30
+ label: string;
31
+ level: "info";
32
+ color: ColorFn;
33
+ };
34
+ log: {
35
+ level: "log";
36
+ };
37
+ debug: {
38
+ label: string;
39
+ level: "verbose";
40
+ color: ColorFn;
41
+ };
42
+ };
43
+
44
+ type LogLevel = 'error' | 'warn' | 'info' | 'log' | 'verbose';
45
+ type LogMessage = unknown;
46
+ interface LogType {
47
+ label?: string;
48
+ level: LogLevel;
49
+ color?: ColorFn;
50
+ }
51
+ type LogFunction = (message?: LogMessage, ...args: any[]) => void;
52
+ interface Options {
53
+ level?: LogLevel;
54
+ }
55
+ type LogMethods = keyof typeof LOG_TYPES;
56
+ type Logger = Record<LogMethods, LogFunction> & {
57
+ greet: (message: string) => void;
58
+ level: LogLevel;
59
+ override: (customLogger: Partial<Record<LogMethods, LogFunction>>) => void;
60
+ };
61
+
62
+ declare let createLogger: (options?: Options) => Logger;
63
+
64
+ declare let logger: Logger;
65
+
66
+ export { type LogFunction, type LogLevel, type LogMessage, type LogType, type Logger, type Options, createLogger, logger };