Crate swc_plugin_inferno

Crate swc_plugin_inferno 

Source

Structs§

JsxDirectives
Options
PluginDiagnosticsEmitter
An emitter for the Diagnostic in plugin’s context by borrowing host’s environment context.
RefreshOptions

Enums§

VNodeType

Functions§

__get_transform_plugin_core_pkg_diag
__transform_plugin_process_impl
default_import_source
inferno
top_level_mark should be Mark passed to [swc_ecma_transforms_base::resolver::resolver_with_mark].
jsx
Turn JSX into Inferno function calls
parse_expr_for_jsx
pure_annotations
This pass adds a /*#PURE#/ annotation to calls to known pure top-level Inferno methods, so that terser and other minifiers can safely remove them during dead code elimination.
refresh
react-refresh/babel https://github.com/facebook/react/blob/main/packages/react-refresh/src/ReactFreshBabelPlugin.js