summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index c028d97c2..1f325ad32 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -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,