[ci] format
This commit is contained in:
parent
d46f8fb14d
commit
60653c7340
2 changed files with 6 additions and 6 deletions
|
@ -21,18 +21,18 @@ export async function runHookConfigSetup({
|
||||||
|
|
||||||
let updatedConfig: AstroConfig = { ..._config };
|
let updatedConfig: AstroConfig = { ..._config };
|
||||||
for (const integration of _config.integrations) {
|
for (const integration of _config.integrations) {
|
||||||
/**
|
/**
|
||||||
* By making integration hooks optional, Astro can now ignore null or undefined Integrations
|
* By making integration hooks optional, Astro can now ignore null or undefined Integrations
|
||||||
* instead of giving an internal error most people can't read
|
* instead of giving an internal error most people can't read
|
||||||
*
|
*
|
||||||
* This also enables optional integrations, e.g.
|
* This also enables optional integrations, e.g.
|
||||||
* ```ts
|
* ```ts
|
||||||
* integration: [
|
* integration: [
|
||||||
* // Only run `compress` integration in production environments, etc...
|
* // Only run `compress` integration in production environments, etc...
|
||||||
* import.meta.env.production ? compress() : null
|
* import.meta.env.production ? compress() : null
|
||||||
* ]
|
* ]
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
if (integration?.hooks?.['astro:config:setup']) {
|
if (integration?.hooks?.['astro:config:setup']) {
|
||||||
await integration.hooks['astro:config:setup']({
|
await integration.hooks['astro:config:setup']({
|
||||||
config: updatedConfig,
|
config: updatedConfig,
|
||||||
|
|
2
packages/webapi/mod.d.ts
vendored
2
packages/webapi/mod.d.ts
vendored
|
@ -1,5 +1,5 @@
|
||||||
export { pathToPosix } from './lib/utils';
|
export { pathToPosix } from './lib/utils';
|
||||||
export { AbortController, AbortSignal, alert, atob, Blob, btoa, ByteLengthQueuingStrategy, cancelAnimationFrame, cancelIdleCallback, CanvasRenderingContext2D, CharacterData, clearTimeout, Comment, CountQueuingStrategy, CSSStyleSheet, CustomElementRegistry, CustomEvent, Document, DocumentFragment, DOMException, Element, Event, EventTarget, fetch, File, FormData, Headers, HTMLBodyElement, HTMLCanvasElement, HTMLDivElement, HTMLDocument, HTMLElement, HTMLHeadElement, HTMLHtmlElement, HTMLImageElement, HTMLSpanElement, HTMLStyleElement, HTMLTemplateElement, HTMLUnknownElement, Image, ImageData, IntersectionObserver, MediaQueryList, MutationObserver, Node, NodeFilter, NodeIterator, OffscreenCanvas, ReadableByteStreamController, ReadableStream, ReadableStreamBYOBReader, ReadableStreamBYOBRequest, ReadableStreamDefaultController, ReadableStreamDefaultReader, Request, requestAnimationFrame, requestIdleCallback, ResizeObserver, Response, setTimeout, ShadowRoot, structuredClone, StyleSheet, Text, TransformStream, TreeWalker, URLPattern, Window, WritableStream, WritableStreamDefaultController, WritableStreamDefaultWriter, } from './mod.js';
|
export { AbortController, AbortSignal, alert, atob, Blob, btoa, ByteLengthQueuingStrategy, cancelAnimationFrame, cancelIdleCallback, CanvasRenderingContext2D, CharacterData, clearTimeout, Comment, CountQueuingStrategy, CSSStyleSheet, CustomElementRegistry, CustomEvent, Document, DocumentFragment, DOMException, Element, Event, EventTarget, fetch, File, FormData, Headers, HTMLBodyElement, HTMLCanvasElement, HTMLDivElement, HTMLDocument, HTMLElement, HTMLHeadElement, HTMLHtmlElement, HTMLImageElement, HTMLSpanElement, HTMLStyleElement, HTMLTemplateElement, HTMLUnknownElement, Image, ImageData, IntersectionObserver, MediaQueryList, MutationObserver, Node, NodeFilter, NodeIterator, OffscreenCanvas, ReadableByteStreamController, ReadableStream, ReadableStreamBYOBReader, ReadableStreamBYOBRequest, ReadableStreamDefaultController, ReadableStreamDefaultReader, Request, requestAnimationFrame, requestIdleCallback, ResizeObserver, Response, setTimeout, ShadowRoot, structuredClone, StyleSheet, Text, TransformStream, TreeWalker, URLPattern, Window, WritableStream, WritableStreamDefaultController, WritableStreamDefaultWriter } from './mod.js';
|
||||||
export declare const polyfill: {
|
export declare const polyfill: {
|
||||||
(target: any, options?: PolyfillOptions): any;
|
(target: any, options?: PolyfillOptions): any;
|
||||||
internals(target: any, name: string): any;
|
internals(target: any, name: string): any;
|
||||||
|
|
Loading…
Add table
Reference in a new issue