mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
fix(core): rebuild when JS sources for snapshotting change (#17876)
This commit is contained in:
parent
b4b718d6ae
commit
2bd7482295
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue