Skip to content

Commit 1beacd8

Browse files
committed
fix check
1 parent f6e5bdb commit 1beacd8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/oxc_angular_compiler/src/component/transform.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)