Skip to content

Commit

Permalink
Set the structureReused to be safemoudles when dynamic import change
Browse files Browse the repository at this point in the history
  • Loading branch information
Yui T committed Jun 19, 2017
1 parent 6d33083 commit 15ef20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/program.ts
Expand Up @@ -804,7 +804,7 @@ namespace ts {
}
if ((oldSourceFile.flags & NodeFlags.PossiblyContainsDynamicImport) !== (newSourceFile.flags & NodeFlags.PossiblyContainsDynamicImport)) {
// dynamicImport has changed
oldProgram.structureIsReused = StructureIsReused.Not;
oldProgram.structureIsReused = StructureIsReused.SafeModules;
}

if (!arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) {
Expand Down

0 comments on commit 15ef20d

Please sign in to comment.