1
- # @ rsbuild/ plugin-react-router
1
+ # rsbuild- plugin-react-router
2
2
3
3
<p align =" center " >
4
4
<a href =" https://rsbuild.dev " target =" blank " ><img src =" https://github.com/web-infra-dev/rsbuild/assets/7237365/84abc13e-b620-468f-a90b-dbf28e7e9427 " alt =" Rsbuild Logo " /></a >
@@ -19,11 +19,11 @@ A Rsbuild plugin that provides seamless integration with React Router, supportin
19
19
## Installation
20
20
21
21
``` bash
22
- npm install @ rsbuild/ plugin-react-router
22
+ npm install rsbuild- plugin-react-router
23
23
# or
24
- yarn add @ rsbuild/ plugin-react-router
24
+ yarn add rsbuild- plugin-react-router
25
25
# or
26
- pnpm add @ rsbuild/ plugin-react-router
26
+ pnpm add rsbuild- plugin-react-router
27
27
```
28
28
29
29
## Usage
@@ -32,7 +32,7 @@ Add the plugin to your `rsbuild.config.ts`:
32
32
33
33
``` ts
34
34
import { defineConfig } from ' @rsbuild/core' ;
35
- import { pluginReactRouter } from ' @ rsbuild/ plugin-react-router' ;
35
+ import { pluginReactRouter } from ' rsbuild- plugin-react-router' ;
36
36
import { pluginReact } from ' @rsbuild/plugin-react' ;
37
37
38
38
export default defineConfig (() => {
@@ -208,7 +208,7 @@ The plugin supports two ways to handle server-side rendering:
208
208
``` ts
209
209
// rsbuild.config.ts
210
210
import { defineConfig } from ' @rsbuild/core' ;
211
- import { pluginReactRouter } from ' @ rsbuild/ plugin-react-router' ;
211
+ import { pluginReactRouter } from ' rsbuild- plugin-react-router' ;
212
212
import { pluginReact } from ' @rsbuild/plugin-react' ;
213
213
214
214
export default defineConfig (() => {
@@ -331,7 +331,7 @@ To deploy your React Router app to Cloudflare Workers:
331
331
` ` ` ts
332
332
import { defineConfig } from ' @rsbuild/core' ;
333
333
import { pluginReact } from ' @rsbuild/plugin-react' ;
334
- import { pluginReactRouter } from ' @ rsbuild/ plugin-react-router' ;
334
+ import { pluginReactRouter } from ' rsbuild- plugin-react-router' ;
335
335
336
336
export default defineConfig ({
337
337
environments: {
0 commit comments