mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 18:41:55 -05:00
fix: remove type for directRenderScript
This commit is contained in:
parent
027b8398f7
commit
8ce54b5d6a
1 changed files with 0 additions and 27 deletions
|
@ -1502,33 +1502,6 @@ export interface AstroUserConfig {
|
|||
* These flags are not guaranteed to be stable.
|
||||
*/
|
||||
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
|
||||
* @name experimental.contentCollectionCache
|
||||
|
|
Loading…
Reference in a new issue