astro/packages
Okiki Ojo d46f8fb14d
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
2022-06-14 14:08:14 -04:00
..
astro feat: support optional and conditional integrations (#3590) 2022-06-14 14:08:14 -04:00
astro-prism [ci] update lockfile (#3153) 2022-04-20 09:42:31 -04:00
astro-rss [ci] update lockfile (#3495) 2022-06-01 10:39:32 -05:00
create-astro [ci] format 2022-06-06 16:49:53 +00:00
integrations [ci] release (#3569) 2022-06-10 21:07:03 -05:00
markdown/remark [ci] release (#3569) 2022-06-10 21:07:03 -05:00
telemetry [ci] format 2022-06-06 16:49:53 +00:00
webapi feat: support optional and conditional integrations (#3590) 2022-06-14 14:08:14 -04:00