summaryrefslogtreecommitdiff
path: root/docs/core-concepts/ui-renderers.md
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-07-01 08:42:07 -0400
committerGravatar GitHub <noreply@github.com> 2021-07-01 08:42:07 -0400
commit6a660f1b08430fe6e8f0e0939220511827cb0bc0 (patch)
tree7955f2046acf6614a2763bda5bdb8a2ff9cbb5b2 /docs/core-concepts/ui-renderers.md
parent81ea010906ef81eee0ab84d7bdeff96644744113 (diff)
downloadastro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.tar.gz
astro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.tar.zst
astro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.zip
Implements low-level custom element support (#587)
* Implements low-level custom element support * Changes based on self review * Adds a changeset * Polyfills are added even when not hydrating * Remove hydrationMethod option Punting on this idea until it's really needed.
Diffstat (limited to 'docs/core-concepts/ui-renderers.md')
-rw-r--r--docs/core-concepts/ui-renderers.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/core-concepts/ui-renderers.md b/docs/core-concepts/ui-renderers.md
index a95b0dbdf..a83d3f49b 100644
--- a/docs/core-concepts/ui-renderers.md
+++ b/docs/core-concepts/ui-renderers.md
@@ -100,10 +100,12 @@ Additionally, this entrypoint can define a [Snowpack plugin](https://www.snowpac
export default {
name: '@astrojs/renderer-xxx', // the renderer name
client: './client.js', // relative path to the client entrypoint
- server: './server.js', // relative path to the server entrypoint
+ server: './server.js', // optional, relative path to the server entrypoint
snowpackPlugin: '@snowpack/plugin-xxx', // optional, the name of a snowpack plugin to inject
snowpackPluginOptions: { example: true }, // optional, any options to be forwarded to the snowpack plugin
knownEntrypoint: ['framework'], // optional, entrypoint modules that will be used by compiled source
+ external: ['dep'] // optional, dependencies that should not be built by snowpack
+ polyfills: ['./shadow-dom-polyfill.js'] // optional, module scripts that should be loaded before client hydration.
};
```