From 7a7aaf8f76976f054ddefa4c080c65b65f163ef1 Mon Sep 17 00:00:00 2001 From: Florian Schwalm Date: Mon, 6 May 2024 15:39:34 +0200 Subject: [PATCH] fix(preset-env): Ignore env.path for swc_css_prefixer Maybe reconsider this later if this is functionality we want --- crates/swc_css_prefixer/src/prefixer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_css_prefixer/src/prefixer.rs b/crates/swc_css_prefixer/src/prefixer.rs index 292060b15161..47c359c94281 100644 --- a/crates/swc_css_prefixer/src/prefixer.rs +++ b/crates/swc_css_prefixer/src/prefixer.rs @@ -107,7 +107,7 @@ pub fn should_prefix(property: &str, target: Versions, default: bool) -> bool { } pub fn prefixer(options: Options) -> impl VisitMut { - let env: Versions = targets_to_versions(options.env).expect("failed to parse targets"); + let env: Versions = targets_to_versions(options.env, None).expect("failed to parse targets"); Prefixer { env,