mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Make sure impliedNodeFormat is set for the sourceFile
This commit is contained in:
@@ -1734,6 +1734,7 @@ namespace ts {
|
||||
if (!newSourceFile) {
|
||||
return StructureIsReused.Not;
|
||||
}
|
||||
newSourceFile.impliedNodeFormat = sourceFileOptions.impliedNodeFormat;
|
||||
newSourceFile.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined;
|
||||
newSourceFile.packageJsonScope = sourceFileOptions.packageJsonScope;
|
||||
|
||||
@@ -2968,6 +2969,7 @@ namespace ts {
|
||||
file.path = path;
|
||||
file.resolvedPath = toPath(fileName);
|
||||
file.originalFileName = originalFileName;
|
||||
file.impliedNodeFormat = sourceFileOptions.impliedNodeFormat;
|
||||
file.packageJsonLocations = sourceFileOptions.packageJsonLocations?.length ? sourceFileOptions.packageJsonLocations : undefined;
|
||||
file.packageJsonScope = sourceFileOptions.packageJsonScope;
|
||||
addFileIncludeReason(file, reason);
|
||||
|
||||
Reference in New Issue
Block a user