You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/en/guides/upgrade-to/v6.mdx
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -405,36 +405,34 @@ export const server = {
405
405
406
406
### Experimental Flags
407
407
408
-
The following experimental flags have been removed in Astro v6.0 and these features are available for use:
409
-
410
-
-`thing 1`
411
-
412
-
Additionally, the following experimental flags have been removed and **are now the default or recommended behavior in Astro v6.0**.
413
-
414
-
-`experimental.preserveScriptOrder` (See below for breaking changes to [default `<script>` and `<style>` behavior](#changed-script-and-style-tags-are-rendered-in-the-order-they-are-defined).)
415
-
-`experimental.staticImportMetaEnv` (See below for breaking changes to [`import.meta.env`](#changed-importmetaenv-values-are-always-inlined).)
416
-
417
-
The following experimental flags have been removed and **their corresponding features are not part of Astro v6.0**.
418
-
419
-
-`thing 2`
408
+
Experimental flags allow you to opt in to features while they are in early development. Astro may also use experimental flags to test breaking changes to default behavior. The following experimental flags have been removed in Astro 6.0 and are now stable, or the new default behavior.
420
409
421
410
Remove these experimental flags from your Astro config if you were previously using them:
422
411
423
-
```js del={5-7} title="astro.config.mjs"
412
+
```js del={5-8} title="astro.config.mjs"
424
413
import { defineConfig } from'astro/config';
425
414
426
415
exportdefaultdefineConfig({
427
416
experimental: {
417
+
liveContentCollections:true,
428
418
preserveScriptOrder:true,
429
419
staticImportMetaEnv:true,
430
420
headingIdCompat:true,
431
421
},
432
422
})
433
423
```
434
424
435
-
These features are all available by default in Astro v5.0.
425
+
#### Experimental features now stable:
426
+
427
+
-`liveContentCollections` (See the updated [content collections docs](/en/guides/content-collections/) to learn more about live collections.)
428
+
429
+
#### New default or recommended behavior:
430
+
431
+
-`preserveScriptOrder` (See below for breaking changes to [default `<script>` and `<style>` behavior](#changed-script-and-style-tags-are-rendered-in-the-order-they-are-defined).)
432
+
-`staticImportMetaEnv` (See below for breaking changes to [`import.meta.env`](#changed-importmetaenv-values-are-always-inlined).)
433
+
-`headingIdCompat` (See below for breaking changes to [Markdown heading ID generation](#changed-markdown-heading-id-generation).)
436
434
437
-
<ReadMore>Read about these exciting features and more in [the v6.0 Blog post](https://astro.build/blog/astro-6/).</ReadMore>
435
+
<ReadMore>Read about exciting new features and more in [the v6.0 Blog post](https://astro.build/blog/astro-6/).</ReadMore>
0 commit comments