Skip to content

feat: document about modernjs plugin dependency #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions docs/recipes/modernjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,49 @@ pnpm dlx @modern-js/create@latest

## Configure Zephyr

Once created, navigate to your project directory and install dependencies:
::: info

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.

:::

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

<Tabs values={[{label:"npm"}, {label: 'yarn'}, {label: 'pnpm'}]}>
<Tab>
```bash filename="Terminal"
cd your-project-name
npm install
npm install zephyr-modernjs-plugin@latest

# if using rspack
npm install zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest

# if using webpack
npm install zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
```
</Tab>
<Tab>
```bash filename="Terminal"
cd your-project-name
yarn
yarn add zephyr-modernjs-plugin@latest

# if using rspack
yarn add zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest

# if using webpack
yarn add zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
```
</Tab>
<Tab>
```bash filename="Terminal"
cd your-project-name
pnpm i
pnpm add zephyr-modernjs-plugin@latest

# if using rspack
pnpm add zephyr-modernjs-plugin@latest zephyr-rspack-plugin@latest

# if using webpack
pnpm add zephyr-modernjs-plugin@latest zephyr-webpack-plugin@latest
```
</Tab>
</Tabs>
Expand Down