Skip to content

Commit

Permalink
Switch back to node as default for moduleResolution
Browse files Browse the repository at this point in the history
Fixes microsoft#196554

Looks like bundler breaks `require()` intellisense
  • Loading branch information
mjbvz committed Oct 30, 2023
1 parent b93c7bc commit 37ec51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/typescript-language-features/src/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function inferredProjectCompilerOptions(
): Proto.ExternalProjectCompilerOptions {
const projectConfig: Proto.ExternalProjectCompilerOptions = {
module: 'ESNext' as Proto.ModuleKind,
moduleResolution: (version.gte(API.v500) ? 'Bundler' : 'Node') as Proto.ModuleResolutionKind,
moduleResolution: 'Node' as Proto.ModuleResolutionKind,
target: 'ES2022' as Proto.ScriptTarget,
jsx: 'react' as Proto.JsxEmit,
};
Expand Down

0 comments on commit 37ec51e

Please sign in to comment.