Skip to content

Commit

Permalink
feat: options
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Jan 20, 2025
1 parent fcd19a5 commit 34a47ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/rspack/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ impl CompilerBuilder {
self
}

pub fn stats(&mut self, stats: StatsOptions) -> &mut Self {
self.options_builder.stats(stats);
self
}

pub fn amd(&mut self, amd: String) -> &mut Self {
self.options_builder.amd(amd);
self
}

pub fn experiments<V>(&mut self, experiments: V) -> &mut Self
where
V: Into<ExperimentsBuilder>,
Expand Down

0 comments on commit 34a47ef

Please sign in to comment.