mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05: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())
|
.flat_map(|ext| ext.get_esm_sources().to_owned())
|
||||||
.collect::<Vec<ExtensionFileSource>>();
|
.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(
|
Rc::new(crate::modules::InternalModuleLoader::new(
|
||||||
options.module_loader,
|
options.module_loader,
|
||||||
esm_sources,
|
esm_sources,
|
||||||
|
|
Loading…
Add table
Reference in a new issue