Skip to content

Commit

Permalink
ci: update reference docs (withastro#4163)
Browse files Browse the repository at this point in the history
Co-authored-by: delucis <[email protected]>
Co-authored-by: Elian ☕️ <[email protected]>
  • Loading branch information
3 people authored Aug 11, 2023
1 parent f275f8f commit e6e7620
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/content/docs/en/reference/configuration-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -913,3 +913,26 @@ and enable animations with the `transition:animate` directive.
```


### experimental.optimizeHoistedScript

<p>

**Type:** `boolean`<br />
**Default:** `false`<br />
<Since v="2.10.4" />
</p>

Prevents unused components' scripts from being included in a page unexpectedly.
The optimization is best-effort and may inversely miss including the used scripts. Make sure to double-check your built pages
before publishing.
Enable hoisted script analysis optimization by adding the experimental flag:

```js
{
experimental: {
optimizeHoistedScript: true,
},
}
```


0 comments on commit e6e7620

Please sign in to comment.