mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
feat(es/react): Add VisitMut
bound to the return type of react preset (#5499)
This commit is contained in:
parent
75704e5df8
commit
14606d9222
@ -1,7 +1,7 @@
|
||||
#![deny(clippy::all)]
|
||||
|
||||
use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap};
|
||||
use swc_ecma_visit::Fold;
|
||||
use swc_ecma_visit::{Fold, VisitMut};
|
||||
|
||||
pub use self::{
|
||||
display_name::display_name,
|
||||
@ -37,7 +37,7 @@ pub fn react<C>(
|
||||
comments: Option<C>,
|
||||
mut options: Options,
|
||||
top_level_mark: Mark,
|
||||
) -> impl Fold
|
||||
) -> impl Fold + VisitMut
|
||||
where
|
||||
C: Comments + Clone,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user