Skip to content

Commit c055912

Browse files
feat: document about modernjs plugin dependency (#125)
1 parent 09a1e77 commit c055912

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

docs/recipes/modernjs.mdx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,29 +73,49 @@ pnpm dlx @modern-js/create@latest
7373

7474
## Configure Zephyr
7575

76-
Once created, navigate to your project directory and install dependencies:
76+
::: info
77+
78+
Since modern.js is a framework built on top of Webpack or Rspack, you need to install both the Zephyr ModernJS plugin and the Rspack or Webpack plugin, depending on your bundler choice.
79+
80+
:::
7781

82+
Once created, navigate to your project directory and install dependencies:
7883

7984
<Tabs values={[{label:"npm"}, {label: 'yarn'}, {label: 'pnpm'}]}>
8085
<Tab>
8186
```bash filename="Terminal"
8287
cd your-project-name
8388
npm install
84-
npm install zephyr-modernjs-plugin@latest
89+
90+
# if using rspack
91+
npm install zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest
92+
93+
# if using webpack
94+
npm install zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
8595
```
8696
</Tab>
8797
<Tab>
8898
```bash filename="Terminal"
8999
cd your-project-name
90100
yarn
91-
yarn add zephyr-modernjs-plugin@latest
101+
102+
# if using rspack
103+
yarn add zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest
104+
105+
# if using webpack
106+
yarn add zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
92107
```
93108
</Tab>
94109
<Tab>
95110
```bash filename="Terminal"
96111
cd your-project-name
97112
pnpm i
98-
pnpm add zephyr-modernjs-plugin@latest
113+
114+
# if using rspack
115+
pnpm add zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest
116+
117+
# if using webpack
118+
pnpm add zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
99119
```
100120
</Tab>
101121
</Tabs>

0 commit comments

Comments
 (0)