Skip to content

Commit 496930b

Browse files
committed
fix demo site
1 parent 671dfca commit 496930b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

svelte.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import ghpagesAdapter from "svelte-adapter-ghpages"
22
import path from "path"
33
import fs from "fs"
44

5+
// eslint-disable-next-line no-undef -- There seems to be a package that uses `self`.
6+
if (typeof self === "undefined") {
7+
globalThis.self = globalThis
8+
}
9+
510
const dirname = path.dirname(new URL(import.meta.url).pathname)
611

712
// This project can't be ESM yet, so hack it to get svelte-kit to work.

vite.config.mts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ const config: UserConfig = {
5858
"./node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs",
5959
),
6060
espree: path.join(dirname, "./node_modules/espree/dist/espree.cjs"),
61+
"eslint-scope": path.join(
62+
dirname,
63+
"./node_modules/eslint-scope/dist/eslint-scope.cjs",
64+
),
6165
acorn: path.join(dirname, "./node_modules/acorn/dist/acorn.js"),
6266
},
6367
},

0 commit comments

Comments
 (0)