Switch back to node as default for moduleResolution (#197031)

Fixes #196554

Looks like bundler breaks `require()` intellisense
This commit is contained in:
Matt Bierner 2023-10-30 16:40:44 -07:00 committed by GitHub
parent c1ec0edf78
commit 0279c52a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
};