You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite exposes [`@rollup/pluginutils`'s `createFilter`](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter) function to encourage Vite specific plugins and integrations to use the standard include/exclude filtering pattern, which is also used in Vite core itself.
521
+
Vite 暴露了 [`@rollup/pluginutils` 的 `createFilter`](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter) 函数,以支持 Vite 独有插件和集成使用标准的 include/exclude 过滤模式,Vite 核心自身也正在使用它。
522
522
523
-
## Client-server Communication
523
+
## 客户端与服务端间通信 {#client-server-communication}
524
524
525
-
Since Vite 2.9, we provide some utilities for plugins to help handle the communication with clients.
525
+
从 Vite 2.9 开始,我们为插件提供了一些实用工具,以帮助处理与客户端的通信。
526
526
527
-
### Server to Client
527
+
### 服务端到客户端 {#server-to-client}
528
528
529
-
On the plugin side, we could use `server.ws.send` to broadcast events to all the clients:
0 commit comments