Crate swc_plugin_inferno
source ·Structs§
- An emitter for the Diagnostic in plugin’s context by borrowing host’s environment context.
Enums§
Functions§
top_level_mark
should be Mark passed to [swc_ecma_transforms_base::resolver::resolver_with_mark].- Turn JSX into Inferno function calls
- 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.
react-refresh/babel
https://github.com/facebook/react/blob/main/packages/react-refresh/src/ReactFreshBabelPlugin.js