From d29691b4c764f90527aba254363abf1400b6bc8d Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Thu, 14 May 2026 00:19:06 -0400 Subject: [PATCH] fix: issues module resolution --- apps/website/src/workers/tempblotLanguageServer.worker.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/website/src/workers/tempblotLanguageServer.worker.ts b/apps/website/src/workers/tempblotLanguageServer.worker.ts index 828bd69..1932fd2 100644 --- a/apps/website/src/workers/tempblotLanguageServer.worker.ts +++ b/apps/website/src/workers/tempblotLanguageServer.worker.ts @@ -86,6 +86,7 @@ function patchPlaygroundTypeScriptHost(host: typescript.LanguageServiceHost | un const originalFileExists = host.fileExists?.bind(host); const originalDirectoryExists = host.directoryExists?.bind(host); const originalReadDirectory = host.readDirectory?.bind(host); + const originalGetCompilationSettings = host.getCompilationSettings.bind(host); const originalGetScriptFileNames = host.getScriptFileNames.bind(host); const originalGetScriptSnapshot = host.getScriptSnapshot.bind(host); const originalGetScriptVersion = host.getScriptVersion.bind(host); @@ -116,6 +117,11 @@ function patchPlaygroundTypeScriptHost(host: typescript.LanguageServiceHost | un ...(originalReadDirectory?.(rootDir, extensions, excludes, includes, depth) ?? []), ])]; }; + host.getCompilationSettings = () => ({ + ...originalGetCompilationSettings(), + module: playgroundTypescript.ModuleKind.NodeNext, + moduleResolution: playgroundTypescript.ModuleResolutionKind.NodeNext, + }); host.getScriptFileNames = () => [...new Set([ ...originalGetScriptFileNames(), ...nodeTypeRootFiles, -- 2.51.2