astro/.changeset/twelve-baboons-obey.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
422 B
Markdown
Raw Permalink Normal View History

2023-07-25 14:16:29 +00:00
---
'astro': minor
---
Astro integrations now accept a logger. The logger is available to all hooks as
an additional parameter:
```js
// integration.js
export function myIntegration(): AstroIntegration {
return {
name: "my-integration",
hooks: {
"astro:config:done": (options, { logger }) => {
logger.info("Configure integration...");
}
}
}
}
```