diff options
author | 2022-01-07 16:28:27 -0500 | |
---|---|---|
committer | 2022-01-07 16:28:27 -0500 | |
commit | 180dfcf2fc39c4697e178c47a3d3a5459d845cdf (patch) | |
tree | 6ec948f95169ff77c72857555ab9fc722ec14982 /examples/fast-build/src | |
parent | c3c054c9128ee9b94985cad1d32c1292393a7dcb (diff) | |
download | astro-180dfcf2fc39c4697e178c47a3d3a5459d845cdf.tar.gz astro-180dfcf2fc39c4697e178c47a3d3a5459d845cdf.tar.zst astro-180dfcf2fc39c4697e178c47a3d3a5459d845cdf.zip |
Handle loading the Code package in the static build (#2337)
* Handle loading the Code package
Fixes #2329
* Use Code the normal way
* Adds a changeset
* Only resolve browser path if there is no common ancestor
* Update examples/fast-build/src/pages/index.astro
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'examples/fast-build/src')
-rw-r--r-- | examples/fast-build/src/pages/index.astro | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/fast-build/src/pages/index.astro b/examples/fast-build/src/pages/index.astro index ee228aa19..9d4555b79 100644 --- a/examples/fast-build/src/pages/index.astro +++ b/examples/fast-build/src/pages/index.astro @@ -3,6 +3,7 @@ import imgUrl from '../images/penguin.jpg'; import grayscaleUrl from '../images/random.jpg?grayscale=true'; import Greeting from '../components/Greeting.vue'; import Counter from '../components/Counter.vue'; +import { Code } from 'astro/components'; --- <html> @@ -32,9 +33,16 @@ import Counter from '../components/Counter.vue'; <img src={grayscaleUrl} /> </section> + <section> + <h1>Astro components</h1> + <Code lang="css" code={`body { + color: salmon; +}`} /> + </section> + <section> <h1>Hydrated component</h1> <Counter client:idle /> </section> </body> -</html>
\ No newline at end of file +</html> |