Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
Themezv committed Mar 24, 2024
1 parent e4b676b commit b4c3e80
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/loadable-components/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ impl<C> VisitMut for Loadable<C>
where
C: Comments,
{
fn visit_mut_import_decl(&mut self, import_decl: &mut ImportDecl) {}

fn visit_mut_call_expr(&mut self, call: &mut CallExpr) {
call.visit_mut_children_with(self);

Expand Down Expand Up @@ -725,3 +727,22 @@ fn clone_params(e: &Expr) -> Vec<Param> {
_ => Default::default(),
}
}

struct Signature {
name: String,
from: String,
}

impl Default for Signature {
fn default() -> Self {
Signature {
name: "default".into(),
from: "@loadable/components".into(),
}
}
}

#[derive(Default)]
struct PluginConfig {
signatures: Option<Vec<Signature>>,
}

0 comments on commit b4c3e80

Please sign in to comment.