Skip to content

Commit

Permalink
Manually fix 'unused import' lint due to conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Oct 11, 2024
1 parent d4dd89e commit 3d0c6cf
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -92,12 +92,14 @@ impl Issue for UnsupportedSwcEcmaTransformPluginsIssue {
#[derive(Debug)]
pub struct SwcEcmaTransformPluginsTransformer {
#[cfg(feature = "swc_ecma_transform_plugin")]
plugins: Vec<(ResolvedVc<SwcPluginModule>, serde_json::Value)>,
plugins: Vec<(turbo_tasks::ResolvedVc<SwcPluginModule>, serde_json::Value)>,
}

impl SwcEcmaTransformPluginsTransformer {
#[cfg(feature = "swc_ecma_transform_plugin")]
pub fn new(plugins: Vec<(ResolvedVc<SwcPluginModule>, serde_json::Value)>) -> Self {
pub fn new(
plugins: Vec<(turbo_tasks::ResolvedVc<SwcPluginModule>, serde_json::Value)>,
) -> Self {
Self { plugins }
}

Expand Down

0 comments on commit 3d0c6cf

Please sign in to comment.