Skip to content

Commit faa5dbb

Browse files
authored
fix: mark webpack as optional peer dependency (#1061)
* fix: mark webpack as optional peer dependency * test: refactor tests to support Rspack * fix: format * fix: remove unused
1 parent 146dad2 commit faa5dbb

File tree

10 files changed

+1311
-965
lines changed

10 files changed

+1311
-965
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h1 align="center">Babel Loader</h1>
1717

18-
This package allows transpiling JavaScript files using [Babel](https://github.com/babel/babel) and [webpack](https://github.com/webpack/webpack).
18+
This package allows transpiling JavaScript files using [Babel](https://github.com/babel/babel) together with [webpack](https://github.com/webpack/webpack) or [Rspack](https://github.com/web-infra-dev/rspack).
1919

2020
**Note**: Issues with the output should be reported on the Babel [Issues](https://github.com/babel/babel/issues) tracker.
2121

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,23 @@
1414
},
1515
"peerDependencies": {
1616
"@babel/core": "^7.12.0 || ^8.0.0-beta.1",
17+
"@rspack/core": "^1.0.0 || ^2.0.0-0",
1718
"webpack": ">=5.61.0"
1819
},
20+
"peerDependenciesMeta": {
21+
"@rspack/core": {
22+
"optional": true
23+
},
24+
"webpack": {
25+
"optional": true
26+
}
27+
},
1928
"devDependencies": {
2029
"@babel/cli": "^8.0.0-beta.1",
2130
"@babel/core": "^8.0.0-beta.1",
2231
"@babel/eslint-parser": "^8.0.0-beta.1",
2332
"@babel/preset-env": "^8.0.0-beta.1",
33+
"@rspack/core": "^1.7.5",
2434
"c8": "^10.1.2",
2535
"eslint": "^9.6.0",
2636
"eslint-config-prettier": "^9.1.0",

0 commit comments

Comments
 (0)