diff options
author | 2021-07-01 10:51:05 -0400 | |
---|---|---|
committer | 2021-07-01 10:51:44 -0400 | |
commit | 7b4c97c3c78f94fc71b16f1de82b3fc49683f084 (patch) | |
tree | d45441e6c92811ff9f1399f3b31e285fe735f075 | |
parent | fd80381db2c8cbc8ec4c2a3b3cd6baa4f090e912 (diff) | |
download | astro-7b4c97c3c78f94fc71b16f1de82b3fc49683f084.tar.gz astro-7b4c97c3c78f94fc71b16f1de82b3fc49683f084.tar.zst astro-7b4c97c3c78f94fc71b16f1de82b3fc49683f084.zip |
Adds a changeset for hydrationPolyfills support
-rw-r--r-- | .changeset/brave-mails-repeat.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.changeset/brave-mails-repeat.md b/.changeset/brave-mails-repeat.md new file mode 100644 index 000000000..e26dcb1c1 --- /dev/null +++ b/.changeset/brave-mails-repeat.md @@ -0,0 +1,18 @@ +--- +'astro': patch +--- + +Adds support for `hydrationPolyfills` in renderers + +Renderers can not specify polyfills that must run before the component code runs for hydration: + +```js +export default { + name: '@matthewp/my-renderer', + server: './server.js', + client: './client.js', + hydrationPolyfills: ['./my-polyfill.js'] +} +``` + +These will still wait for hydration to occur, but will run before the component script does. |