From fee4943f760fae2c9386ceeda86c3f8fbfd8e6a0 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 8 Mar 2024 14:14:28 -0500 Subject: fix(node): resolve .css files in npm packages when type checking (#22804) When type checking, we should just resolve css files in npm packages and not surface a type checking error on the specifier. --- ext/node/resolution.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/node/resolution.rs') diff --git a/ext/node/resolution.rs b/ext/node/resolution.rs index 6f7b8c921..4590311e8 100644 --- a/ext/node/resolution.rs +++ b/ext/node/resolution.rs @@ -518,6 +518,10 @@ impl NodeResolver { return Some(path); } } + // allow resolving .css files for types resolution + if lowercase_path.ends_with(".css") { + return Some(path); + } None } -- cgit v1.2.3