Re-exports§
pub use source::NpmResolvePkgReqsResult;
Modules§
Structs§
- Build
Fast Check Type Graph Options - Build
Options - Dependency
- External
Module - Represents a module which is not statically analyzed and is only available at runtime. It is up to the implementor to ensure that the module is loaded and available as a dependency. The module does not contain source code and will have no dependencies.
- Fast
Check Type Module - Fill
From Lockfile Options - Graph
Import - Provides a way for imports, through configuration, to be imported to the module graph without requiring the dependencies to be analyzed. This is intended to be used for importing type dependencies or other externally defined dependencies, like JSX runtimes.
- Import
- JsModule
- Json
Module - Module
Error - Module
Graph - The structure which represents a module graph, which can be serialized as well as “printed”. The roots of the graph represent the “starting” point which can be located in the module “slots” in the graph. The graph also contains any redirects where the requested module specifier was redirected to another module specifier when being loaded.
- Module
Text Source - NpmModule
- An npm package entrypoint.
- Parse
Module From AstOptions - Parse
Module Options - Position
- Position
Range - Range
- Referrer
Imports - Additional import that should be brought into the scope of the module graph to add to the graph’s “imports”. This may be extra modules such as TypeScript’s “types” option or JSX runtime types.
- Resolution
Resolved - Types
Dependency - Walk
Options - Wasm
Module - Workspace
Member
Enums§
- Check
JsOption - Fast
Check Type Module Slot - Graph
Kind - The kind of module graph.
- Import
Kind - JsrLoad
Error - Media
Type - Module
- Module
Entry Ref - Module
Error Kind - Module
Graph Error - Module
Load Error - NpmLoad
Error - Resolution
- Resolution
Error - Specifier
Error - Workspace
Fast Check Option
Traits§
- Check
JsResolver - Executor
- An executor for futures.
Functions§
- parse_
module - Parse an individual module, returning the module as a result, otherwise erroring with a module graph error.
- parse_
module_ from_ ast - Parse an individual module from an AST, returning the module.
- resolve_
import - Given a specifier string and a referring module specifier, try to resolve the target module specifier, erroring if it cannot be resolved.