1166f83bf6
We now check all of the scripts which make up a library. If any script is modified, then we consider that library to be modified. We also consider any library which imports a modified library to be modified. To propagate this info efficiently, we build and discard the imported-by graph when beginning a reload. The embedder must provide a FileModifiedCallback in order to support the detection of modified scripts. In order to detect changes to package: libraries, we have modified the embedder interface to provide the resolved url when possible, so that we don't need to re-resolve package uris when checking for reload. This change is incompatible and all embedders will need to be updated. We now support a "force" flag when reloading sources. This causes all libraries to be reloaded regardless of whether the underlying scripts have been updated. Closes #26919 R=johnmccutchan@google.com Review URL: https://codereview.chromium.org/2186423002 .