pub fn react<C>(
cm: Lrc<SourceMap>,
comments: Option<C>,
options: Options,
top_level_mark: Mark,
unresolved_mark: Mark,
) -> impl Passwhere
C: Comments + Clone,
Expand description
@babel/preset-react
Preset for all React plugins.
top_level_mark
should be [Mark] passed to
[swc_ecma_transforms_base::resolver::resolver_with_mark].
ยงNote
This pass uses [swc_ecma_utils::HANDLER].