diff options
author | 2022-01-25 12:49:38 -0500 | |
---|---|---|
committer | 2022-01-25 12:49:38 -0500 | |
commit | cc050a7cc3d725399b3c81977fe30aecd5b4ccfa (patch) | |
tree | 4c1b83b69a6f1934811e34512aa3829dc74b30d4 | |
parent | a764264d29648e31e3d0908343da9e0454ef8e88 (diff) | |
download | astro-cc050a7cc3d725399b3c81977fe30aecd5b4ccfa.tar.gz astro-cc050a7cc3d725399b3c81977fe30aecd5b4ccfa.tar.zst astro-cc050a7cc3d725399b3c81977fe30aecd5b4ccfa.zip |
Add note about imports to migration guide (#2467)
* Update 0.21.0.md
* Improve grammar
* add bug note
-rw-r--r-- | docs/src/pages/en/migration/0.21.0.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/src/pages/en/migration/0.21.0.md b/docs/src/pages/en/migration/0.21.0.md index 971635203..d88e947a6 100644 --- a/docs/src/pages/en/migration/0.21.0.md +++ b/docs/src/pages/en/migration/0.21.0.md @@ -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. |