@rsbuild/core 2.0.0-beta.7 → 2.0.0-canary-20260309085658

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 (47) hide show
  1. package/bin/rsbuild.js +13 -0
  2. package/compiled/css-loader/index.js +2 -2
  3. package/compiled/html-rspack-plugin/index.js +14 -14
  4. package/compiled/jiti/dist/babel.cjs +60 -60
  5. package/compiled/jiti/dist/jiti.cjs +2 -2
  6. package/compiled/postcss-loader/index.js +6 -6
  7. package/compiled/rslog/index.d.ts +17 -1
  8. package/compiled/rslog/package.json +1 -1
  9. package/dist/710.js +2 -1
  10. package/dist/{131.js → 958.js} +247 -265
  11. package/dist/chokidar.js +61 -52
  12. package/dist/client/hmr.js +1 -1
  13. package/dist/client/overlay.js +1 -1
  14. package/dist/connect.js +28 -13
  15. package/dist/cors.js +2 -2
  16. package/dist/http-proxy-middleware.js +108 -25
  17. package/dist/index.js +1 -1
  18. package/dist/launch-editor-middleware.js +35 -8
  19. package/dist/manifest-plugin.js +22 -7
  20. package/dist/memfs.js +127 -104
  21. package/dist/open.js +40 -29
  22. package/dist/range-parser.js +2 -2
  23. package/dist/remapping.js +8 -2
  24. package/dist/rslib-runtime.js +3 -3
  25. package/dist/sirv.js +18 -12
  26. package/dist/tinyglobby.js +32 -26
  27. package/dist/{31.js → trace-mapping.js} +10 -1
  28. package/dist/transformLoader.mjs +38 -1
  29. package/dist/transformRawLoader.mjs +1 -1
  30. package/dist/ws.js +1566 -0
  31. package/dist-types/helpers/index.d.ts +1 -1
  32. package/dist-types/helpers/vendors.d.ts +0 -1
  33. package/dist-types/server/runner/asModule.d.ts +1 -1
  34. package/dist-types/server/socketServer.d.ts +1 -1
  35. package/package.json +5 -5
  36. package/compiled/ws/index.d.ts +0 -437
  37. package/compiled/ws/index.js +0 -3166
  38. package/compiled/ws/license +0 -20
  39. package/compiled/ws/package.json +0 -1
  40. package/dist/397.js +0 -11
  41. package/dist/7.js +0 -1
  42. package/dist/712.js +0 -15
  43. package/dist/743.js +0 -7
  44. package/dist/88.js +0 -40
  45. package/dist-types/helpers/color.d.ts +0 -4
  46. /package/dist/{131.js.LICENSE.txt → 958.js.LICENSE.txt} +0 -0
  47. /package/dist/client/{59.js → 797.js} +0 -0
package/bin/rsbuild.js CHANGED
@@ -12,7 +12,20 @@ if (enableCompileCache) {
12
12
  }
13
13
  }
14
14
 
15
+ function checkNodeVersion() {
16
+ const { node, bun, deno } = process.versions;
17
+ if (!node || bun || deno) {
18
+ return;
19
+ }
20
+ if (Number(node.split('.')[0]) < 20) {
21
+ throw new Error(
22
+ `Unsupported Node.js version "${node}", Rsbuild requires Node.js 20+.`,
23
+ );
24
+ }
25
+ }
26
+
15
27
  async function main() {
28
+ checkNodeVersion();
16
29
  const { runCLI } = await import('../dist/index.js');
17
30
  runCLI();
18
31
  }