Skip to content

Commit

Permalink
feat: add rspack entry
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 23, 2024
1 parent 2923347 commit e2074e3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
"require": "./dist/webpack.cjs",
"import": "./dist/webpack.js"
},
"./rspack": {
"require": "./dist/rspack.cjs",
"import": "./dist/rspack.js"
},
"./rollup": {
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.js"
Expand Down
20 changes: 20 additions & 0 deletions src/rspack.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This entry file is for Rspack plugin.
*
* @module
*/

import unplugin from './index'

/**
* Rspack plugin
*
* @example
* ```ts
* // rspack.config.js
* module.exports = {
* plugins: [require('unplugin-replace/rspack')()],
* }
* ```
*/
export default unplugin.rspack

0 comments on commit e2074e3

Please sign in to comment.