summaryrefslogtreecommitdiff
path: root/examples/doc
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-06-02 11:35:28 -0500
committerGravatar GitHub <noreply@github.com> 2021-06-02 11:35:28 -0500
commit94eac19888398e91d436cf31867ba9d3397e1d1a (patch)
treefb321d70f2a1a09ca35b5507bbf6b7f240ebc5bc /examples/doc
parent4dd18deab959adaf3f1f31b4e47349a657d273f0 (diff)
downloadastro-94eac19888398e91d436cf31867ba9d3397e1d1a.tar.gz
astro-94eac19888398e91d436cf31867ba9d3397e1d1a.tar.zst
astro-94eac19888398e91d436cf31867ba9d3397e1d1a.zip
Pre-release refactors (#289)
* refactor: expose `astro/components` as component entrypoint * refactor: remove `extensions` from all configs * test: fix snowpack tests * docs: update config doc
Diffstat (limited to 'examples/doc')
-rw-r--r--examples/doc/astro.config.mjs6
-rw-r--r--examples/doc/src/pages/index.astro2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/doc/astro.config.mjs b/examples/doc/astro.config.mjs
index 9ba6c58c9..d97e2804d 100644
--- a/examples/doc/astro.config.mjs
+++ b/examples/doc/astro.config.mjs
@@ -1,5 +1,5 @@
export default {
- extensions: {
- '.tsx': 'preact'
- }
+ renderers: [
+ '@astrojs/renderer-preact'
+ ]
};
diff --git a/examples/doc/src/pages/index.astro b/examples/doc/src/pages/index.astro
index fe00e15a8..75ca0da4f 100644
--- a/examples/doc/src/pages/index.astro
+++ b/examples/doc/src/pages/index.astro
@@ -1,5 +1,5 @@
---
-import Markdown from 'astro/components/Markdown.astro';
+import { Markdown } from 'astro/components';
import Layout from '../layouts/Main.astro';
---