diff options
-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. |