Skip to content

Commit c9868df

Browse files
committed
📝 update doc
1 parent 17ffe17 commit c9868df

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

README.md

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,14 @@ export default defineConfig({
2424

2525
Example: [`playground/`](./playground/)
2626

27-
<br></details>
28-
29-
<details>
30-
<summary>Rollup</summary><br>
3127

3228
```ts
3329
// rollup.config.js
3430
import Components from 'unplugin-react-components/rollup'
3531

3632
export default {
3733
plugins: [
34+
React(),
3835
Components({ /* options */ }),
3936
],
4037
}
@@ -58,53 +55,6 @@ module.exports = {
5855

5956
<br></details>
6057

61-
<details>
62-
<summary>Nuxt</summary><br>
63-
64-
```ts
65-
// nuxt.config.js
66-
export default {
67-
buildModules: [
68-
['unplugin-react-components/nuxt', { /* options */ }],
69-
],
70-
}
71-
```
72-
73-
> This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
74-
75-
<br></details>
76-
77-
<details>
78-
<summary>Vue CLI</summary><br>
79-
80-
```ts
81-
// vue.config.js
82-
module.exports = {
83-
configureWebpack: {
84-
plugins: [
85-
require('unplugin-react-components/webpack')({ /* options */ }),
86-
],
87-
},
88-
}
89-
```
90-
91-
<br></details>
92-
93-
<details>
94-
<summary>esbuild</summary><br>
95-
96-
```ts
97-
// esbuild.config.js
98-
import { build } from 'esbuild'
99-
import Components from 'unplugin-react-components/esbuild'
100-
101-
build({
102-
plugins: [Components()],
103-
})
104-
```
105-
106-
<br></details>
107-
10858
## Usage
10959
Use components in templates as you would usually do, it will import components on demand, and there is no import and component registration required anymore! If you register the parent component asynchronously (or lazy route), the auto-imported components will be code-split along with their parent.
11060

0 commit comments

Comments
 (0)