Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
correct check for window variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Jan 26, 2023
1 parent 8af925b commit a0022f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/fetch-and-compile/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": ["../../.eslintrc.package.json"]
"extends": ["../../.eslintrc.package.json"],
"env": {
"browser": "readonly"
}
}
2 changes: 1 addition & 1 deletion packages/fetch-and-compile/lib/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function tryFetchAndCompileAddress(
});

// @ts-ignore
if (window) {
if (typeof window === "undefined") {
externalConfig.compilers.cache = "noCache";
}

Expand Down

0 comments on commit a0022f4

Please sign in to comment.