Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/zh-cn/guides/upgrade-to/v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ import Markdown from '@astrojs/markdown-component';

### 移除:已废弃的 1.x API

在 Astro v1.x 中,Astro 废弃了配置选项以及脚本/样式 `global` 和 `hoist` 属性类型。这些被保留是为了向后兼容
在 Astro v1.x 中,Astro 废弃了对最初的配置选项以及 `<style global>` 和 `<script hoist>` 的支持。但为了向后兼容,它们依旧可用

Astro v3.0 完全删除了这些已弃用的 API。它们不能再在你的 Astro 项目中使用
Astro v3.0 完全删除了这些已弃用的 API。你应该使用正式被支持的[配置选项](/zh-cn/reference/configuration-reference/)以及现代的 `<style is:global>` 和 `<script>`

#### 我应该怎么做?

Expand Down