Skip to content

Commit be79212

Browse files
authoredFeb 13, 2024··
Change webpack peer dependency to optional in loader
Closes GH-2440. Reviewed-by: Remco Haszing <remcohaszing@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 6cd9ae4 commit be79212

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎packages/loader/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
"peerDependencies": {
5050
"webpack": ">=5"
5151
},
52+
"peerDependenciesMeta": {
53+
"webpack": {
54+
"optional": true
55+
}
56+
},
5257
"devDependencies": {},
5358
"scripts": {
5459
"test": "npm run test-coverage",

‎packages/loader/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This package is a webpack loader to support MDX.
3535
## When should I use this?
3636

3737
This integration is useful if you’re using webpack (or another tool that uses
38-
webpack, such as Next.js).
38+
webpack, such as Next.js or Rspack).
3939

4040
This integration can be combined with the Babel loader to compile modern
4141
JavaScript features to ones your users support.

0 commit comments

Comments
 (0)
Please sign in to comment.