Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议能够开发出一个支持 RspackRsbuild 的插件 #86

Open
BrightX opened this issue Jul 28, 2024 · 2 comments
Open

建议能够开发出一个支持 RspackRsbuild 的插件 #86

BrightX opened this issue Jul 28, 2024 · 2 comments

Comments

@BrightX
Copy link

BrightX commented Jul 28, 2024

新特性说明

这个插件对于 vite 项目的使用非常方便、实用。
所以很期望在 RspackRsbuild 中,也能像在 vite 中一样使用该 Mock 插件。

解决方案建议

最好能够兼容现有的 mock 配置,以满足 vite 项目向 rsbuild 项目迁移

可替代方案

No response

任何其他上下文

No response

@pengzhanbo
Copy link
Owner

pengzhanbo commented Jul 29, 2024

我比较少使用到 rspack 和 rsbuild,但看到它们兼容 webpack 的生态,我会抽时间研究下它们。另外我可能会考虑 基于 unplugin 去适配 不同 构建工具。

@pengzhanbo
Copy link
Owner

pengzhanbo commented Aug 3, 2024

我新开源了 rspack-plugin-mock ,同时支持 rspack 和 rsbuild,并完全利用 rspack 本身的能力,实现了与 vite-plugin-mock-dev-server 完全一致的功能。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants