mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
b76c166bdd
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
941 B
941 B
astro |
---|
major |
astro:assets
is now enabled by default. If you were previously using the experimental.assets
flag, please remove it from your config. Also note that the previous @astrojs/image
integration is incompatible, and must be removed.
This also brings two important changes to using images in Astro:
- New ESM shape: importing an image will now return an object with different properties describing the image such as its path, format and dimensions. This is a breaking change and may require you to update your existing images.
- In Markdown, MDX, and Markdoc, the
![]()
syntax will now resolve relative images located anywhere in your project in addition to remote images and images stored in thepublic/
folder. This notably unlocks storing images next to your content.
Please see our existing Assets page in Docs for more information about using astro:assets
.