mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +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)]
|
#![deny(clippy::all)]
|
||||||
|
|
||||||
use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap};
|
use swc_common::{chain, comments::Comments, sync::Lrc, Mark, SourceMap};
|
||||||
use swc_ecma_visit::Fold;
|
use swc_ecma_visit::{Fold, VisitMut};
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
display_name::display_name,
|
display_name::display_name,
|
||||||
@ -37,7 +37,7 @@ pub fn react<C>(
|
|||||||
comments: Option<C>,
|
comments: Option<C>,
|
||||||
mut options: Options,
|
mut options: Options,
|
||||||
top_level_mark: Mark,
|
top_level_mark: Mark,
|
||||||
) -> impl Fold
|
) -> impl Fold + VisitMut
|
||||||
where
|
where
|
||||||
C: Comments + Clone,
|
C: Comments + Clone,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user