Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-sull authored and astrobot-houston committed Jun 29, 2022
1 parent 51d5dc4 commit 2f7d918
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/astro/src/runtime/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}!`
);
Expand Down

0 comments on commit 2f7d918

Please sign in to comment.