@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.
- package/bin/rsbuild.js +13 -0
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/jiti/dist/babel.cjs +60 -60
- package/compiled/jiti/dist/jiti.cjs +2 -2
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +17 -1
- package/compiled/rslog/package.json +1 -1
- package/dist/710.js +2 -1
- package/dist/{131.js → 958.js} +247 -265
- package/dist/chokidar.js +61 -52
- package/dist/client/hmr.js +1 -1
- package/dist/client/overlay.js +1 -1
- package/dist/connect.js +28 -13
- package/dist/cors.js +2 -2
- package/dist/http-proxy-middleware.js +108 -25
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +35 -8
- package/dist/manifest-plugin.js +22 -7
- package/dist/memfs.js +127 -104
- package/dist/open.js +40 -29
- package/dist/range-parser.js +2 -2
- package/dist/remapping.js +8 -2
- package/dist/rslib-runtime.js +3 -3
- package/dist/sirv.js +18 -12
- package/dist/tinyglobby.js +32 -26
- package/dist/{31.js → trace-mapping.js} +10 -1
- package/dist/transformLoader.mjs +38 -1
- package/dist/transformRawLoader.mjs +1 -1
- package/dist/ws.js +1566 -0
- package/dist-types/helpers/index.d.ts +1 -1
- package/dist-types/helpers/vendors.d.ts +0 -1
- package/dist-types/server/runner/asModule.d.ts +1 -1
- package/dist-types/server/socketServer.d.ts +1 -1
- package/package.json +5 -5
- package/compiled/ws/index.d.ts +0 -437
- package/compiled/ws/index.js +0 -3166
- package/compiled/ws/license +0 -20
- package/compiled/ws/package.json +0 -1
- package/dist/397.js +0 -11
- package/dist/7.js +0 -1
- package/dist/712.js +0 -15
- package/dist/743.js +0 -7
- package/dist/88.js +0 -40
- package/dist-types/helpers/color.d.ts +0 -4
- /package/dist/{131.js.LICENSE.txt → 958.js.LICENSE.txt} +0 -0
- /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
|
}
|