Skip to main content

Crate rolldown_ecmascript_utils

Crate rolldown_ecmascript_utils 

Source

Structs§

EsmWrapperStmtOptions
Options for StatementFactoryExt::new_esm_wrapper_stmt.

Enums§

EsmWrapperBodyKind
EsmWrapperCallKind
EsmWrapperDeclKind

Traits§

BindingIdentifierFactoryExt
rolldown’s recurring BindingIdentifier constructions.
BindingPatternExt
BindingPropertyExt
CallExpressionExt
CallExpressionFactoryExt
rolldown’s recurring CallExpression constructions.
ClassElementFactoryExt
rolldown’s recurring ClassElement constructions.
ExpressionExt
ExpressionFactoryExt
rolldown’s recurring Expression constructions.
FunctionExt
IdentifierNameFactoryExt
rolldown’s recurring IdentifierName constructions.
JsxExt
JsxMemberExpressionObjectExt
MemberExpressionFactoryExt
rolldown’s recurring MemberExpression constructions.
ObjectPropertyKindFactoryExt
rolldown’s recurring ObjectPropertyKind constructions.
StatementExt
StatementFactoryExt
rolldown’s recurring Statement constructions.

Functions§

contains_script_closing_tag
Check if source contains </script (case insensitive) which requires transformer to handle tagged template literals.
is_top_level
if current visit path is top level including such scenario:
parse_injected_expression
Parses code as a single JS expression into allocator, with all spans zeroed.