Add note about imports to migration guide (#2467)
* Update 0.21.0.md * Improve grammar * add bug note
This commit is contained in:
parent
a764264d29
commit
cc050a7cc3
1 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue