mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
51d5dc4789
commit
2f7d918912
1 changed files with 6 additions and 1 deletions
|
@ -360,7 +360,12 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
|||
|
||||
// HACK! The lit renderer doesn't include a clientEntrypoint for custom elements, allow it
|
||||
// to render here until we find a better way to recognize when a client entrypoint isn't required.
|
||||
if (renderer && !renderer.clientEntrypoint && renderer.name !== '@astrojs/lit' && metadata.hydrate) {
|
||||
if (
|
||||
renderer &&
|
||||
!renderer.clientEntrypoint &&
|
||||
renderer.name !== '@astrojs/lit' &&
|
||||
metadata.hydrate
|
||||
) {
|
||||
throw new Error(
|
||||
`${metadata.displayName} component has a \`client:${metadata.hydrate}\` directive, but no client entrypoint was provided by ${renderer.name}!`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue