compiler: Move embedded_file_resources from the root Component to the Document

This commit is contained in:
Olivier Goffart 2024-06-19 11:15:38 +02:00
parent 41d39c507f
commit 2fd8744cfc
15 changed files with 68 additions and 86 deletions

View file

@ -411,7 +411,7 @@ pub fn compile_with_config(
write!(code_formatter, "{}", generated).map_err(CompileError::SaveError)?;
println!("cargo:rerun-if-changed={}", path.display());
for resource in doc.root_component.embedded_file_resources.borrow().keys() {
for resource in doc.embedded_file_resources.borrow().keys() {
if !resource.starts_with("builtin:") {
println!("cargo:rerun-if-changed={}", resource);
}