File tree Expand file tree Collapse file tree 1 file changed +34
-13
lines changed
Expand file tree Collapse file tree 1 file changed +34
-13
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,35 @@ export default {
6868
6969<br ></details >
7070
71+ <details >
72+ <summary >Rolldown</summary ><br >
73+
74+ ``` ts
75+ // rolldown.config.js
76+ import ElementPlus from ' unplugin-element-plus/rolldown'
77+
78+ export default {
79+ plugins: [
80+ ElementPlus ({
81+ // options
82+ }),
83+ ],
84+ }
85+ ```
86+
87+ <br ></details >
88+
7189<details >
7290<summary >esbuild</summary ><br >
7391
7492``` ts
7593// esbuild.config.js
7694import { build } from ' esbuild'
95+ import ElementPlus from ' unplugin-element-plus/esbuild'
7796
7897build ({
7998 plugins: [
80- require ( ' unplugin-element-plus/esbuild ' ) ({
99+ ElementPlus ({
81100 // options
82101 }),
83102 ],
@@ -91,10 +110,12 @@ build({
91110
92111``` ts
93112// webpack.config.js
94- module .exports = {
113+ import ElementPlus from ' unplugin-element-plus/webpack'
114+
115+ export default {
95116 /* ... */
96117 plugins: [
97- require ( ' unplugin-element-plus/webpack ' ) ({
118+ ElementPlus ({
98119 // options
99120 }),
100121 ],
@@ -104,18 +125,18 @@ module.exports = {
104125<br ></details >
105126
106127<details >
107- <summary >Vue CLI </summary ><br >
128+ <summary >Rspack </summary ><br >
108129
109130``` ts
110- // vue .config.js
111- module . exports = {
112- configureWebpack: {
113- plugins: [
114- require ( ' unplugin-element-plus/webpack ' )({
115- // options
116- }),
117- ] ,
118- } ,
131+ // rspack .config.js
132+ import ElementPlus from ' unplugin-element-plus/rspack '
133+ export default {
134+ /* ... */
135+ plugins: [
136+ ElementPlus ({
137+ // options
138+ }) ,
139+ ] ,
119140}
120141```
121142
You can’t perform that action at this time.
0 commit comments