All files / components/Image BlurhashRenderer.svelte

100% Statements 11/11
100% Branches 0/0
100% Functions 0/0
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 121x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
<script lang="ts">
  // The BlurhashRenderer renders blurhashes using a custom bundle created with
  // vite-plugin-import-as-bundle-string. This bundle is inlined at the end of the body and runs
  // immediately upon being parsed, which leads to much faster rendering of blurhashes than if we
  // relied on onMount or a reactive statement in a component.
  import source from "./renderBlurhash?bundlestring";
  const script = `<script>${source}${"<"}/script>`;
</script>
 
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html script}