mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
chore(core): don't print cargo directives if not creating snapshot (#18205)
This commit is contained in:
parent
f2da1716a8
commit
a8013e7a0f
1 changed files with 8 additions and 6 deletions
|
@ -604,12 +604,14 @@ impl JsRuntime {
|
|||
.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())
|
||||
if snapshot_options != SnapshotOptions::None {
|
||||
for source in &esm_sources {
|
||||
use crate::ExtensionFileSourceCode;
|
||||
if let ExtensionFileSourceCode::LoadedFromFsDuringSnapshot(path) =
|
||||
&source.code
|
||||
{
|
||||
println!("cargo:rerun-if-changed={}", path.display())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue