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
ast_path_trie
A compact, shared representation of [AstParentKind] paths.
async_chunk
bytes_source_transform
chunk
chunk_list
code_gen
embed_js
hmr
json_source_transform
magic_identifier
manifest
minify
module_canonicalization
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§

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

Enums§

EcmascriptModuleAssetType
EnvVarAccessMode
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§

chunk_item_content_with_code_from
Generate the code of a processed virtual module under the identity of the module in the graph. The code source supplies its parsed program, references, exports and async behavior; the graph module supplies the identity for export usage and other code generation.
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.