mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update comment
This commit is contained in:
1 file changed
+3
-4
@@ -704,10 +704,9 @@ namespace ts.codefix {
|
||||
}
|
||||
|
||||
// If we’re in JavaScript, it can be difficult to tell whether the user wants to import
|
||||
// from Node core modules or not. We can start by seeing if type acquisition has already
|
||||
// downloaded @types/node, because if it has, that indicates that the user has already
|
||||
// been using some Node core modules directly, as opposed to simply having @types/node
|
||||
// accidentally as a dependency of a dependency.
|
||||
// from Node core modules or not. We can start by seeing if the user is actually using
|
||||
// any node core modules, as opposed to simply having @types/node accidentally as a
|
||||
// dependency of a dependency.
|
||||
if (isSourceFileJS(fromFile) && JsTyping.nodeCoreModules.has(moduleSpecifier)) {
|
||||
if (usesNodeCoreModules === undefined) {
|
||||
usesNodeCoreModules = consumesNodeCoreModules(fromFile);
|
||||
|
||||
Reference in new issue
Block a user