From c013ed57bf3d7dd83bd59a9b984d87aebde6003c Mon Sep 17 00:00:00 2001
From: "netop://ウィビ" <paul@webb.page>
Date: Fri, 24 Apr 2026 16:37:49 -0700
Subject: Migrate from Deno/JSR to npm publishing

- @sveltejs/package builds dist/ for @eeeooolll/graphiql with three entry
  points (./, ./component, ./splitter)
- Vitest + svelte-check replace Deno test/check; runes shim no longer
  needed since the Svelte plugin compiles .svelte.ts at runtime
- Drop $app/environment dep in Editor.svelte to support non-SvelteKit
  consumers
- Refactor TabBar tab element from nested <button> to role=tab <div> per
  PLAN.md gotcha; svelte-check flagged the invalid HTML
- README now documents npm install, integration patterns for Yoga,
  Apollo, graphql-modules, Hono/Bun/Deno, plus APQ + keyboard table
---
 source/library/components/Editor.svelte | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'source/library/components/Editor.svelte')

diff --git a/source/library/components/Editor.svelte b/source/library/components/Editor.svelte
index f2bf82d..393812a 100644
--- a/source/library/components/Editor.svelte
+++ b/source/library/components/Editor.svelte
@@ -1,7 +1,6 @@
 <script lang="ts">
   /*** IMPORT ------------------------------------------- ***/
 
-  import { browser } from "$app/environment";
   import { onMount } from "svelte";
   import type { Extension } from "@codemirror/state";
   import type { EditorView } from "@codemirror/view";
@@ -33,7 +32,7 @@
   let view = $state<EditorView | null>(null);
 
   onMount(() => {
-    if (!browser)
+    if (typeof globalThis.document === "undefined")
       return;
 
     let disposed = false;
-- 
cgit v1.2.3

