File tree Expand file tree Collapse file tree
crates/oxc_angular_compiler/src/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -666,9 +666,14 @@ pub fn transform_angular_file(
666666 // Only externally-provided resolved_imports (e.g., for host directives) override paths.
667667 // Barrel-resolved paths are NOT used here to avoid changing namespace import paths
668668 // from what Angular's compiler would produce.
669+ #[ cfg( not( feature = "cross_file_elision" ) ) ]
669670 let import_map =
670671 build_import_map ( allocator, & parser_ret. program . body , options. resolved_imports . as_ref ( ) ) ;
671672
673+ #[ cfg( feature = "cross_file_elision" ) ]
674+ let mut import_map =
675+ build_import_map ( allocator, & parser_ret. program . body , options. resolved_imports . as_ref ( ) ) ;
676+
672677 // Apply cross-file type-only information to the import_map.
673678 // This marks imports that resolve to interfaces or type aliases as type-only,
674679 // even when they don't use `import type` syntax. This is needed because many
You can’t perform that action at this time.
0 commit comments