Skip to content
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Vite (法语意为 “迅速”,发音 /vit/)是一种全新的前端构

## 📝 如何参与贡献

目前 Vite 中文文档处于 v6 版本,内容 **每日** 根据英文文档同步更新。
目前 Vite 中文文档处于 v7 版本,内容 **每日** 根据英文文档同步更新。

**工作流介绍:** 英文文档的所在 [请点击此链接](https://github.com/vitejs/vite/tree/main/docs),我们会每天拉取英文版文档内容的更新到 sync-docs 分支,并由印记中文 bot 自动发起 Pull Request,解决 Git 冲突并翻译内容。

Expand Down
23 changes: 23 additions & 0 deletions _data/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,27 @@ export const cnTranslator = [
{ icon: 'twitter', link: 'https://twitter.com/ShenQingchuan' }
],
},
{
avatar: 'https://www.github.com/thinkasany.png',
name: 'thinkasany',
title: '前端开发者',
org: '',
orgLink: '',
desc: 'Vite 团队中文翻译维护者 & Antd 成员',
links: [
{ icon: 'github', link: 'https://github.com/thinkasany' },
{ icon: 'twitter', link: 'https://twitter.com/thinkasany' }
],
},
{
avatar: 'https://www.github.com/waynzh.png',
name: 'Wayne Zhang',
title: '前端开发者',
org: '',
orgLink: '',
desc: 'Vite 团队中文翻译维护者',
links: [
{ icon: 'github', link: 'https://github.com/waynzh' },
],
},
]
4 changes: 2 additions & 2 deletions guide/api-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,13 +564,13 @@ export default function myPlugin() {

return {
name: 'my-plugin',
// Example: only call transform for .js files
// 例如:仅调用 .js 的文件的 transform
transform: {
filter: {
id: jsFileRegex,
},
handler(code, id) {
// Additional check for backward compatibility
// 额外的向后兼容性检查
if (!jsFileRegex.test(id)) return null

return {
Expand Down
Loading