Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Sep 16, 2024
1 parent edc8b7f commit 605eb83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/language-server/config/cache-busting-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

Expand All @@ -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,
};
Expand Down
1 change: 0 additions & 1 deletion src/language-server/config/loadTsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 605eb83

Please sign in to comment.