Skip to content

Commit

Permalink
feat: change error handler in test vs in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed May 22, 2023
1 parent a627487 commit b387b94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ use swc_core::{
atoms::Atom,
visit::{as_folder, FoldWith, VisitMut, VisitMutWith},
},
plugin::{errors::HANDLER, plugin_transform, proxies::TransformPluginProgramMetadata},
plugin::{plugin_transform, proxies::TransformPluginProgramMetadata},
};
use tailwind_config::TailwindConfig;
use tailwind_parse::{
Directive, ExpressionConversionError, LiteralConversionError, SubjectConversionError,
};

#[cfg(not(target_arch = "wasm32"))]
use swc_core::common::errors::HANDLER;
#[cfg(targe_arch = "wasm32")]
use swc_core::plugin::errors::HANDLER;

#[derive(serde::Deserialize, Debug, Default)]
pub struct AppConfig<'a> {
#[serde(borrow)]
Expand Down

0 comments on commit b387b94

Please sign in to comment.