0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Adds a changeset for hydrationPolyfills support

This commit is contained in:
Matthew Phillips 2021-07-01 10:51:05 -04:00
parent fd80381db2
commit 7b4c97c3c7

View file

@ -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.