@nestbridge/vite 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ method signatures, while the browser only ever receives a generated
|
|
|
10
10
|
`fetch()` call or GraphQL request. See the [repository README](../../README.md)
|
|
11
11
|
for the full explanation of how NestJS is kept out of the client bundle.
|
|
12
12
|
|
|
13
|
+
This plugin is a thin `vite` binding around the bundler-agnostic
|
|
14
|
+
[`@nestbridge/unplugin`](../unplugin) engine — the same one that
|
|
15
|
+
[`@nestbridge/webpack`](../webpack) wraps for webpack.
|
|
16
|
+
|
|
13
17
|
## Install
|
|
14
18
|
|
|
15
19
|
```bash
|
|
@@ -72,6 +76,10 @@ interface NestBridgeOptions {
|
|
|
72
76
|
}
|
|
73
77
|
```
|
|
74
78
|
|
|
79
|
+
Using webpack instead of Vite? See [`@nestbridge/webpack`'s README](../webpack/README.md)
|
|
80
|
+
for the equivalent setup — same options, same generated output, different
|
|
81
|
+
bundler.
|
|
82
|
+
|
|
75
83
|
Don't forget to call `configureNestBridge` from `@nestbridge/runtime` — this
|
|
76
84
|
option only affects generated path text, not the runtime `fetch()`/GraphQL
|
|
77
85
|
config (`baseURL`/`graphqlEndpoint`).
|