File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ import ghpagesAdapter from "svelte-adapter-ghpages"
2
2
import path from "path"
3
3
import fs from "fs"
4
4
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
+
5
10
const dirname = path . dirname ( new URL ( import . meta. url ) . pathname )
6
11
7
12
// This project can't be ESM yet, so hack it to get svelte-kit to work.
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ const config: UserConfig = {
58
58
"./node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs" ,
59
59
) ,
60
60
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
+ ) ,
61
65
acorn : path . join ( dirname , "./node_modules/acorn/dist/acorn.js" ) ,
62
66
} ,
63
67
} ,
You can’t perform that action at this time.
0 commit comments