From 3d0c6cfaf3ae46033320a4877a7fa949c53e4d55 Mon Sep 17 00:00:00 2001 From: Benjamin Woodruff Date: Tue, 8 Oct 2024 14:45:42 -0700 Subject: [PATCH] Manually fix 'unused import' lint due to conditional compilation --- .../src/transform/swc_ecma_transform_plugins.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/turbopack/crates/turbopack-ecmascript-plugins/src/transform/swc_ecma_transform_plugins.rs b/turbopack/crates/turbopack-ecmascript-plugins/src/transform/swc_ecma_transform_plugins.rs index a4f5eec149cba..a0e854968a709 100644 --- a/turbopack/crates/turbopack-ecmascript-plugins/src/transform/swc_ecma_transform_plugins.rs +++ b/turbopack/crates/turbopack-ecmascript-plugins/src/transform/swc_ecma_transform_plugins.rs @@ -1,7 +1,7 @@ use anyhow::Result; use async_trait::async_trait; use swc_core::ecma::ast::Program; -use turbo_tasks::{ResolvedVc, Vc}; +use turbo_tasks::Vc; use turbo_tasks_fs::FileSystemPath; use turbopack_core::issue::{Issue, IssueSeverity, IssueStage, OptionStyledString, StyledString}; use turbopack_ecmascript::{CustomTransformer, TransformContext}; @@ -92,12 +92,14 @@ impl Issue for UnsupportedSwcEcmaTransformPluginsIssue { #[derive(Debug)] pub struct SwcEcmaTransformPluginsTransformer { #[cfg(feature = "swc_ecma_transform_plugin")] - plugins: Vec<(ResolvedVc, serde_json::Value)>, + plugins: Vec<(turbo_tasks::ResolvedVc, serde_json::Value)>, } impl SwcEcmaTransformPluginsTransformer { #[cfg(feature = "swc_ecma_transform_plugin")] - pub fn new(plugins: Vec<(ResolvedVc, serde_json::Value)>) -> Self { + pub fn new( + plugins: Vec<(turbo_tasks::ResolvedVc, serde_json::Value)>, + ) -> Self { Self { plugins } }