rolldown 1.0.3

Fast JavaScript bundler in Rust, designed for the future of Vite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::BundlerOptions;
use rolldown_plugin::__inner::SharedPluginable;

/// Configuration for creating a bundler instance.
/// This is used by APIs like `Watcher` to construct bundlers internally.
#[derive(Debug)]
pub struct BundlerConfig {
  pub options: BundlerOptions,
  pub plugins: Vec<SharedPluginable>,
}

impl BundlerConfig {
  pub fn new(options: BundlerOptions, plugins: Vec<SharedPluginable>) -> Self {
    Self { options, plugins }
  }
}