1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(core): rebuild when JS sources for snapshotting change (#17876)

This commit is contained in:
Bartek Iwańczuk 2023-02-22 18:21:07 +01:00 committed by GitHub
parent b4b718d6ae
commit 2bd7482295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -616,6 +616,16 @@ impl JsRuntime {
.flat_map(|ext| ext.get_esm_sources().to_owned())
.collect::<Vec<ExtensionFileSource>>();
#[cfg(feature = "include_js_files_for_snapshotting")]
for source in &esm_sources {
use crate::ExtensionFileSourceCode;
if let ExtensionFileSourceCode::LoadedFromFsDuringSnapshot(path) =
&source.code
{
println!("cargo:rerun-if-changed={}", path.display())
}
}
Rc::new(crate::modules::InternalModuleLoader::new(
options.module_loader,
esm_sources,