Open SK-Luffa opened 2 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
这些更改在 bundler-vite
包中的 alias.ts
文件里增加了一个新的别名规则,将 react-helmet-async
替换为它自己。此调整旨在配置中应用该别名规则,以便在构建过程中正确引用该库。
文件 | 变更摘要 |
---|---|
packages/bundler-vite/src/config/transformer/alias.ts |
在 alias 函数中添加了别名规则,将 react-helmet-async 替换为它自己。 |
🐰小兔子快乐舞,代码变动不要慌。 新增规则巧设置,别名替换迎曙光。 文件配置齐步走,前端开发更顺畅。
[!TIP]
Early access features: disabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@fz6m
10212 在windows上 报错的原因是因为这个库的esm版本内的依赖 仍是comjs 但是vite没有识别到,所以需要在vite内resolve 的alias 添加上react-helmet-async 我测试过在umi脚手架生成的项目内添加是完全可以解决的
Summary by CodeRabbit
bundler-vite
包中新增了别名规则,将react-helmet-async
替换为自身。