Skip to content

Commit

Permalink
Change webpack peer dependency to optional in loader
Browse files Browse the repository at this point in the history
Closes GH-2440.

Reviewed-by: Remco Haszing <remcohaszing@gmail.com>
Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
chenjiahan authored Feb 13, 2024
1 parent 6cd9ae4 commit be79212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
"peerDependencies": {
"webpack": ">=5"
},
"peerDependenciesMeta": {
"webpack": {
"optional": true
}
},
"devDependencies": {},
"scripts": {
"test": "npm run test-coverage",
Expand Down
2 changes: 1 addition & 1 deletion packages/loader/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This package is a webpack loader to support MDX.
## When should I use this?

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

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

0 comments on commit be79212

Please sign in to comment.