pub struct BundlerConfig {
pub target: Option<String>,
pub external: Vec<String>,
pub define: HashMap<String, String>,
pub alias: HashMap<String, String>,
pub projection_manifests: Vec<String>,
}Expand description
JavaScript bundler configuration overrides.
All fields are optional; sensible defaults are applied when omitted.
These settings affect how generated page script entries are bundled into
the output assets/ directory.
Fields§
§target: Option<String>ECMAScript target (e.g. "es2022"). Defaults to "es2022".
external: Vec<String>Packages to treat as external (not bundled).
define: HashMap<String, String>Compile-time constant replacements (e.g. { "process.env.NODE_ENV": "\"production\"" }).
alias: HashMap<String, String>Module path aliases (e.g. { "~": "./src" }).
projection_manifests: Vec<String>Additional projection fragments for separately built external bundles.
Trait Implementations§
Source§impl Clone for BundlerConfig
impl Clone for BundlerConfig
Source§fn clone(&self) -> BundlerConfig
fn clone(&self) -> BundlerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BundlerConfig
impl Debug for BundlerConfig
Source§impl Default for BundlerConfig
impl Default for BundlerConfig
Source§fn default() -> BundlerConfig
fn default() -> BundlerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BundlerConfig
impl<'de> Deserialize<'de> for BundlerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BundlerConfig
impl RefUnwindSafe for BundlerConfig
impl Send for BundlerConfig
impl Sync for BundlerConfig
impl Unpin for BundlerConfig
impl UnsafeUnpin for BundlerConfig
impl UnwindSafe for BundlerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more