diff options
author | 2022-06-14 14:08:14 -0400 | |
---|---|---|
committer | 2022-06-14 14:08:14 -0400 | |
commit | d46f8fb14d3c702d62cc327de23562078fca0088 (patch) | |
tree | 3ddb113889a3f10782e6ec42642720356cd01ac6 /examples/framework-svelte | |
parent | 8ca284b080a8551203427204cb27040013a40132 (diff) | |
download | astro-d46f8fb14d3c702d62cc327de23562078fca0088.tar.gz astro-d46f8fb14d3c702d62cc327de23562078fca0088.tar.zst astro-d46f8fb14d3c702d62cc327de23562078fca0088.zip |
feat: support optional and conditional integrations (#3590)
* feat(integrations): support optional integrations
By making integration optional, Astro can now ignore null or undefined Integrations instead of giving an internal error most devs can't read/won't understand.
This also enables optional integrations,
e.g.
```ts
integration: [
// Only run `compress` integration in production environments, etc...
import.meta.env.production ? compress() : null
]
```
* ci: add tests for optional integration
* docs: add changelog
Diffstat (limited to 'examples/framework-svelte')
0 files changed, 0 insertions, 0 deletions