astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
8 lines (7 loc) • 485 B
TypeScript
/**
* This file is prebuilt from packages/astro/src/runtime/client/media.ts
* Do not edit this directly, but instead edit that file and rerun the prebuild
* to generate this file.
*/
declare const _default: "(()=>{var n=(a,t)=>{let i=async()=>{await(await a())()};if(t.value){let e=matchMedia(t.value);e.matches?i():e.addEventListener(\"change\",i,{once:!0})}};(self.Astro||(self.Astro={})).media=n;window.dispatchEvent(new Event(\"astro:media\"));})();";
export default _default;