File tree Expand file tree Collapse file tree 1 file changed +0
-44
lines changed
apps/landing/src/app/(detail)/components/overview Expand file tree Collapse file tree 1 file changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -8,48 +8,4 @@ yarn add @devup-ui/components
88pnpm add @devup - ui / components
99```
1010
11- You need to configure the include option for each bundler environment to properly load the ` @devup-ui/components ` package.
12-
13- # using Vite
14-
15- ``` typescript
16- // vite.config.js
17- import { defineConfig } from " vite" ;
18- import react from " @vitejs/plugin-react" ;
19- import { DevupUI } from " @devup-ui/vite-plugin" ;
20- export default defineConfig ({
21- plugins: [
22- DevupUI ({
23- include: [" @devup-ui/components" ],
24- }),
25- react (),
26- ],
27- });
28- ```
29-
30- # using Next.js
31-
32- ``` typescript
33- // next.config.js
34- import { DevupUI } from " @devup-ui/next-plugin" ;
35- export default DevupUI ({ include: [" @devup-ui/components" ] });
36- ```
37-
38- # using Rsbuild
39-
40- ``` typescript
41- // rsbuild.config.mjs
42- import { defineConfig } from " @rsbuild/core" ;
43- import { pluginReact } from " @rsbuild/plugin-react" ;
44- import { DevupUIRsbuildPlugin } from " @devup-ui/rsbuild-plugin" ;
45- export default defineConfig ({
46- plugins: [
47- pluginReact (),
48- DevupUIRsbuildPlugin ({
49- include: [" @devup-ui/components" ],
50- }),
51- ],
52- });
53- ```
54-
5511Note: If you encounter ` Cannot run on the runtime ` error, make sure the include option is properly configured for your bundler.
You can’t perform that action at this time.
0 commit comments