diff --git a/packages/website/src/components/linter/createParser.ts b/packages/website/src/components/linter/createParser.ts index 9d891ef8d433..8305d8ae8d88 100644 --- a/packages/website/src/components/linter/createParser.ts +++ b/packages/website/src/components/linter/createParser.ts @@ -46,7 +46,7 @@ export function createParser( // if text is empty use empty line to avoid error const code = text || '\n'; - if (system.fileExists(filePath)) { + if (compilerHost.getSourceFile(filePath)) { compilerHost.updateFile(filePath, code); } else { compilerHost.createFile(filePath, code); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy