Add note about imports to migration guide (#2467)

* Update 0.21.0.md

* Improve grammar

* add bug note
This commit is contained in:
Evan Boehs 2022-01-25 12:49:38 -05:00 committed by GitHub
parent a764264d29
commit cc050a7cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,19 @@ const backgroundColor = "rgb(24 121 78)";
<h-tick></h-tick>
```
## Imports on top bug
In Astro v0.21, a bug has been introduced that requires imports inside components to be at the top of your frontmatter.
```astro
---
import Component from '../components/component.astro'
const whereShouldIPutMyImports = "on top!"
---
```
*Note: This is a bug that will be fixed.*
## Components in Markdown
In Astro v0.21, Components from any framework can be used within Markdown files.