Skip to content

Commit e2074e3

Browse files
committed
feat: add rspack entry
1 parent 2923347 commit e2074e3

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
"require": "./dist/webpack.cjs",
4141
"import": "./dist/webpack.js"
4242
},
43+
"./rspack": {
44+
"require": "./dist/rspack.cjs",
45+
"import": "./dist/rspack.js"
46+
},
4347
"./rollup": {
4448
"require": "./dist/rollup.cjs",
4549
"import": "./dist/rollup.js"

src/rspack.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* This entry file is for Rspack plugin.
3+
*
4+
* @module
5+
*/
6+
7+
import unplugin from './index'
8+
9+
/**
10+
* Rspack plugin
11+
*
12+
* @example
13+
* ```ts
14+
* // rspack.config.js
15+
* module.exports = {
16+
* plugins: [require('unplugin-replace/rspack')()],
17+
* }
18+
* ```
19+
*/
20+
export default unplugin.rspack

0 commit comments

Comments
 (0)