Skip to content

Commit

Permalink
Add Rspack as an optional peer dependency of loader
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Feb 13, 2024
1 parent 53f6955 commit b177a2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@
"source-map": "^0.7.0"
},
"peerDependencies": {
"@rspack/core": "0.x || 1.x",
"webpack": ">=5"
},
"peerDependenciesMeta": {
"@rspack/core": {
"optional": true
},
"webpack": {
"optional": true
}
},
"devDependencies": {},
"scripts": {
"test": "npm run test-coverage",
Expand Down
5 changes: 2 additions & 3 deletions packages/loader/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Backers][backers-badge]][collective]
[![Chat][chat-badge]][chat]

webpack loader for MDX.
webpack / Rspack loader for MDX.

<!-- more -->

Expand All @@ -34,8 +34,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).
This integration is useful if you’re using webpack or Rspack (or another tool that uses webpack, such as Next.js).

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 b177a2e

Please sign in to comment.