summaryrefslogtreecommitdiff
path: root/docs/core-concepts
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-07-01 10:42:56 -0400
committerGravatar GitHub <noreply@github.com> 2021-07-01 10:42:56 -0400
commitfd80381db2c8cbc8ec4c2a3b3cd6baa4f090e912 (patch)
treea321436c3c047e56bbb19afbe4f3919ffce952c0 /docs/core-concepts
parent0de30ef01aa98f57a7fbfc07a609777bec456019 (diff)
downloadastro-fd80381db2c8cbc8ec4c2a3b3cd6baa4f090e912.tar.gz
astro-fd80381db2c8cbc8ec4c2a3b3cd6baa4f090e912.tar.zst
astro-fd80381db2c8cbc8ec4c2a3b3cd6baa4f090e912.zip
Adds hydrationPolyfills config for renderers (#594)
Some renderers, such as Lit, need special polyfills only for hydration. We have the `polyfills` array, but that is intended for polyfills that always need to run. This adds a second type hydrationPolyfills that only run on elements that are `:load`, `:idle`, etc.
Diffstat (limited to 'docs/core-concepts')
-rw-r--r--docs/core-concepts/ui-renderers.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/core-concepts/ui-renderers.md b/docs/core-concepts/ui-renderers.md
index a83d3f49b..2d91f1811 100644
--- a/docs/core-concepts/ui-renderers.md
+++ b/docs/core-concepts/ui-renderers.md
@@ -106,6 +106,7 @@ export default {
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.
+ hydrationPolyfills: ['./hydrate-framework.js'] // optional, polyfills that need to run before hydration ever occurs.
};
```