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:
parent
fd80381db2
commit
7b4c97c3c7
1 changed files with 18 additions and 0 deletions
18
.changeset/brave-mails-repeat.md
Normal file
18
.changeset/brave-mails-repeat.md
Normal 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.
|
Loading…
Reference in a new issue