haixuxu / vite-plugin-mockit

vite-plugin-mockit
MIT License
5 stars 1 forks source link

支持vite2 #1

Closed agileago closed 3 years ago

agileago commented 3 years ago

vite2插件server的api已经改成connect中间件风格了

haixuxu commented 3 years ago

使用1.0.0 版本。 使用express风格编写。

mock列表 mock对象

agileago commented 3 years ago

大赞

agileago commented 3 years ago

@xuxihai123 添加上类型支持会不会更好

haixuxu commented 3 years ago

@agileago 类型,ts?

agileago commented 3 years ago

对的

agileago commented 3 years ago

@xuxihai123 https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#breaking-changes server的api改名字了,现在启动项目的话会有warning

haixuxu commented 3 years ago

感觉app=>middlewares , ViteDevServer 这改的太不友好了,等vite 稳定了再做支持!

agileago commented 3 years ago

@xuxihai123 vite2 正式发布了

haixuxu commented 3 years ago

@agileago 62354174f1e33711df9bdfe402cd0a4a10110340