Skip to content

Commit e562742

Browse files
committed
fix: mark webpack as optional peer dependency
1 parent 146dad2 commit e562742

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@
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",

yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,13 @@ __metadata:
18161816
webpack: ^5.93.0
18171817
peerDependencies:
18181818
"@babel/core": ^7.12.0 || ^8.0.0-beta.1
1819+
"@rspack/core": ^1.0.0 || ^2.0.0-0
18191820
webpack: ">=5.61.0"
1821+
peerDependenciesMeta:
1822+
"@rspack/core":
1823+
optional: true
1824+
webpack:
1825+
optional: true
18201826
languageName: unknown
18211827
linkType: soft
18221828

0 commit comments

Comments
 (0)