Skip to main content

Crate turbopack_ecmascript

Crate turbopack_ecmascript 

Source

Re-exports§

pub use crate::references::AnalyzeEcmascriptModuleResult;
pub use crate::references::TURBOPACK_HELPER;
pub use crate::transform::CustomTransformer;
pub use crate::transform::EcmascriptInputTransform;
pub use crate::transform::EcmascriptInputTransforms;
pub use crate::transform::TransformContext;
pub use crate::transform::TransformPlugin;

Modules§

analyzer
annotations
async_chunk
bytes_source_transform
chunk
chunk_list
code_gen
embed_js
hmr
json_source_transform
magic_identifier
manifest
minify
module_fragments
parse
references
rename
runtime_functions
side_effect_optimization
single_file_ecmascript_output
source_map
text
text_source_transform
transform
typescript
utils
webpack
worker_chunk

Macros§

create_visitor
Creates a single-method visitor that will visit the AST nodes matching the provided path.

Structs§

EcmascriptModuleAsset
EcmascriptModuleAssetBuilder
EcmascriptModuleContent
The transformed contents of an Ecmascript module.
EcmascriptModuleContentOptions
EcmascriptOptions
StaticEcmascriptCode
Static ECMAScript file code, to be used as part of some code.

Enums§

AnalyzeMode
EcmascriptModuleAssetType
ScopeHoistingContext
Provides information about the other modules in the current scope hoisting group.
SpecifiedModuleType
TypeofWindow
The constant to replace typeof window with.

Traits§

EcmascriptAnalyzable
EcmascriptAnalyzableExt
EcmascriptParsable

Functions§

swc_comments_to_single_threaded
Converts multi-threaded [SwcComments] into [SingleThreadedComments] by copying all entries. Required when APIs (e.g. swc_ecma_react_compiler) only accept the single-threaded variant.