提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
837 B

  1. # vite-dev-rpc
  2. [![NPM version](https://img.shields.io/npm/v/vite-dev-rpc?color=a1b858&label=)](https://www.npmjs.com/package/vite-dev-rpc)
  3. Remote procedure call for client-server communication in Vite plugins.
  4. > Requires Vite ^2.9.0-beta.9
  5. Based on
  6. - [`birpc`](https://github.com/antfu/birpc) - Message-based two-way remote procedure call.
  7. - [`vite-hot-client`](https://github.com/antfu/vite-hot-client) - Get `import.meta.hot` at runtime.
  8. - [`import.meta.hot.send` API in Vite 2.9](https://github.com/vitejs/vite/pull/7437) - Server-client communication support.
  9. ## Sponsors
  10. <p align="center">
  11. <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
  12. <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
  13. </a>
  14. </p>
  15. ## License
  16. [MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)