-
-
Notifications
You must be signed in to change notification settings - Fork 363
d2m #1489
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
d2m #1489
Changes from all commits
d07682a
8ee0ae5
a6a5c9d
277a0e7
7209497
1090591
e366605
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -114,13 +114,12 @@ export default defineConfig({ | |||||
|
|
||||||
| 精简工作的例子: | ||||||
|
|
||||||
| - 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS 处理嵌套) | ||||||
| - 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS / Lightning CSS 处理嵌套) | ||||||
| - 不要将 SVG 转换为 UI 框架组件(例如 React、Vue 等)。请将其作为字符串或 URL 导入。 | ||||||
| - 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 esbuild)。 | ||||||
| - 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 Oxc)。 | ||||||
|
||||||
| - 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 Oxc)。 | |
| - 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它会使用 Oxc 进行转换(开发期间使用 Oxc,构建期间可能仍然会用到 esbuild,具体取决于版本和配置)。 |
Copilot
AI
Dec 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
移除了关于 @vitejs/plugin-react-swc 的建议,但该插件仍然是一个有效的性能优化选项。根据 guide/rolldown.md:160 和 plugins/index.md:23-25 的文档,@vitejs/plugin-react-swc 仍被推荐用于需要自定义插件的大型项目。虽然 @vitejs/plugin-react 现在也使用 Oxc,但 @vitejs/plugin-react-swc 在开发时使用 SWC 而不是 Babel,对于某些项目来说可能仍然是更好的选择。建议保留此行或更新为更准确的建议,例如说明两种插件的使用场景。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除了
#main分支指定符,但文档说明仍然提到"假设项目在 GitHub 上并使用main作为默认分支"。如果移除了分支指定符,这个说明就不再准确了。tiged 默认会使用仓库的默认分支,无论是什么分支。建议更新说明以反映实际行为,例如:"假设项目在 GitHub 上,可以使用以下命令创建本地副本(tiged 会使用仓库的默认分支)"。