fix: remove type for directRenderScript

This commit is contained in:
Princesseuh 2024-08-29 15:22:46 +02:00
parent 027b8398f7
commit 8ce54b5d6a
No known key found for this signature in database
GPG key ID: 105BBD6D57F2B0C0

View file

@ -1502,33 +1502,6 @@ export interface AstroUserConfig {
* These flags are not guaranteed to be stable. * These flags are not guaranteed to be stable.
*/ */
experimental?: { experimental?: {
/**
* @docs
* @name experimental.directRenderScript
* @type {boolean}
* @default `false`
* @version 4.5.0
* @description
* Enables a more reliable strategy to prevent scripts from being executed in pages where they are not used.
*
* Scripts will directly render as declared in Astro files (including existing features like TypeScript, importing `node_modules`,
* and deduplicating scripts). You can also now conditionally render scripts in your Astro file.
* However, this means scripts are no longer hoisted to the `<head>` and multiple scripts on a page are no longer bundled together.
* If you enable this option, you should check that all your `<script>` tags behave as expected.
*
* This option will be enabled by default in Astro 5.0.
*
* ```js
* {
* experimental: {
* directRenderScript: true,
* },
* }
* ```
*/
directRenderScript?: boolean;
/** /**
* @docs * @docs
* @name experimental.contentCollectionCache * @name experimental.contentCollectionCache