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"
22import path from "path"
33import 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+
510const 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.
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments