swc_node_bundler/v1/
optimization.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Deserialize;

use crate::v1::JsCallback;

#[derive(Debug, Deserialize)]
#[serde(rename = "Optimization", rename_all = "camelCase")]
pub struct OptimizationConfig {
    #[serde(default)]
    pub minimize: bool,

    #[serde(skip)]
    pub minimizer: Option<JsCallback<String, String>>,

    #[serde(default)]
    pub split_chunks: Option<()>,
}