diff --git a/src/language-server/config/cache-busting-resolver.js b/src/language-server/config/cache-busting-resolver.js index 40f714e3..40b49d5d 100644 --- a/src/language-server/config/cache-busting-resolver.js +++ b/src/language-server/config/cache-busting-resolver.js @@ -37,10 +37,7 @@ async function resolve(specifier, context, nextResolve) { return { ...result, url: bustFileName(result.url), - importAttributes: { - ...context.importAttributes, - format: result.format, - }, + importAttributes: context.importAttributes, }; } @@ -56,7 +53,7 @@ async function load(url, context, nextLoad) { return nextLoad(url, context); } return { - format: context.importAttributes.format || "module", + format: context.format || "module", shortCircuit: true, source: context.importAttributes.contents, }; diff --git a/src/language-server/config/loadTsConfig.ts b/src/language-server/config/loadTsConfig.ts index eabca087..f555172b 100644 --- a/src/language-server/config/loadTsConfig.ts +++ b/src/language-server/config/loadTsConfig.ts @@ -55,7 +55,6 @@ async function load( ...compilerOptions, }; transpiledContent = typescript.transpileModule(content, config).outputText; - //await writeFile(compiledFilepath, transpiledContent); } catch (error: any) { error.message = `TypeScript Error in ${filepath}:\n${error.message}`; throw error;