Skip to content

配置实验标志

实验性功能仅在 Astro 配置文件中启用标志后可用。

¥Experimental features are available only after enabling a flag in the Astro configuration file.

astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
// enable experimental flags
// to try out new features
},
});

Astro 提供实验性标志,让用户可以提前访问新功能以进行测试和反馈。

¥Astro offers experimental flags to give users early access to new features for testing and feedback.

这些标志允许你通过报告问题和分享你的意见来参与功能开发。这些功能不能保证稳定,即使在积极开发该功能时,这些功能也可能包括重大更改,即使在小型 patch 版本中也是如此。

¥These flags allow you to participate in feature development by reporting issues and sharing your opinions. These features are not guaranteed to be stable and may include breaking changes even in small patch releases while the feature is actively developed.

我们经常推荐 更新 Astro,并关注 Astro 变更日志 中的发行说明,它将通知你项目代码所需的任何更改。实验性功能文档将始终仅针对当前发布的版本进行更新。

¥We recommend updating Astro frequently, and keeping up with release notes in the Astro changelog which will inform you of any changes needed to your project code. The experimental feature documentation will always be updated for the current released version only.

Astro 中文网 - 粤ICP备13048890号