Crate relay_hook_transpiler

Crate relay_hook_transpiler 

Source

Re-exports§

pub use debug::DebugLevel;
pub use debug::DebugContext;
pub use debug::DebugEntry;

Modules§

debug

Structs§

ImportBinding
ImportMetadata
Describes a single import statement
StaticImportMetadata
Metadata about an import statement for static analysis
TranspileMetadata
Metadata about a transpiled module
TranspileOptions
TranspileResult
Transpile JSX and extract metadata in one call Returns both the transpiled code and import/JSX metadata

Enums§

ImportBindingType
ImportKind
TranspileTarget
Target platform for transpilation

Functions§

extract_imports
Extract import metadata from source without executing it Useful for pre-fetching imports or analyzing module dependencies
hook_transpile_jsx
hook_transpiler_free_string
hook_transpiler_version
transform_es6_modules
Transform ES6 modules to CommonJS Converts: import X from ‘mod’ → const X = require(‘mod’) Converts: export default X → module.exports.default = X
transpile_jsx_simple
Simple JSX to JS transpiler using custom parser Outputs direct calls to __hook_jsx_runtime.jsx(…)
transpile_jsx_with_metadata
Transpile JSX with metadata extraction This is the primary entry point for web clients needing full analysis
transpile_jsx_with_options
Transpile JSX with options (e.g. TypeScript support)
version
Returns the crate version