Skip to content

Commit 72beb8c

Browse files
authored
feat: support Rsbuild v2 (#71)
1 parent f4bca33 commit 72beb8c

5 files changed

Lines changed: 202 additions & 977 deletions

File tree

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "biome check .",
2323
"lint:write": "biome check . --write",
2424
"prepare": "simple-git-hooks && npm run build",
25-
"test": "playwright test"
25+
"test": "playwright test --workers 1"
2626
},
2727
"simple-git-hooks": {
2828
"pre-commit": "npm run lint:write"
@@ -31,9 +31,8 @@
3131
"@biomejs/biome": "^1.9.4",
3232
"@playwright/test": "^1.54.1",
3333
"@rollup/pluginutils": "^5.2.0",
34-
"@rsbuild/core": "^1.4.12",
34+
"@rsbuild/core": "2.0.0-beta.4",
3535
"@rslib/core": "^0.11.0",
36-
"@rsbuild/webpack": "^1.3.2",
3736
"@types/node": "^22.17.0",
3837
"@types/semver": "^7.7.0",
3938
"playwright": "^1.54.1",
@@ -44,7 +43,7 @@
4443
"typescript": "^5.9.2"
4544
},
4645
"peerDependencies": {
47-
"@rsbuild/core": "^1.1.0",
46+
"@rsbuild/core": "^1.1.0 || ^2.0.0-0",
4847
"tailwindcss": "^3.1.0"
4948
},
5049
"peerDependenciesMeta": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/Compiler.d.ts b/dist/Compiler.d.ts
2+
index c8de6de22b46535df48e2b3388108b5ceac0d6f7..d083b1a349bbd81e072eafcbdc25e30beeade4ef 100644
3+
--- a/dist/Compiler.d.ts
4+
+++ b/dist/Compiler.d.ts
5+
@@ -8,7 +8,7 @@
6+
* https://github.com/webpack/webpack/blob/main/LICENSE
7+
*/
8+
import type binding from '@rspack/binding';
9+
-import * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d';
10+
+import type * as liteTapable from '../compiled/@rspack/lite-tapable/dist/index.d.ts';
11+
import type Watchpack from '../compiled/watchpack';
12+
import type { Source } from '../compiled/webpack-sources';
13+
import type { Chunk } from './Chunk.js';

0 commit comments

Comments
 (0)