Crate turbopack_env

Source
Expand description

Environment Variable support for turbopack.

Environment variables can come from multiple sources, including the rust process’s env (immutable and by passing FOO=BAR keys when executing the turbopack binary) or loaded via dotenv files.

Dotenv file loading is a chain. Dotenv files that come first in the chain have higher priority to define a environment variable (later dotenv files cannot override it). Later dotenv files can reference variables prior defined variables.

Modules§

dotenv

Structs§

EmbeddableProcessEnv
Encodes values as JS strings so that they can be safely injected into a JS output.
ProcessEnvAsset
The process.env asset, responsible for initializing the env (shared by all chunks) during app startup.
ProcessEnvIssue
An issue that occurred while resolving the parsing or evaluating the .env.
TryDotenvProcessEnv

Functions§

register