pub struct Bundler { /* private fields */ }
Implementations§
Source§impl Bundler
impl Bundler
pub fn new() -> Self
pub fn include(self, pattern: &str) -> Self
pub fn exclude(self, pattern: &str) -> Self
pub fn with_imports(self, follow: bool) -> Self
pub fn with_tree_shaking(self, enable: bool) -> Self
pub fn verbose(self, enable: bool) -> Self
pub fn bundle_directory<P: AsRef<Path>>( &self, directory: P, optimization_level: OptimizationLevel, ) -> Result<HelixBinary, CompileError>
pub fn bundle_files( &self, files: &[PathBuf], optimization_level: OptimizationLevel, ) -> Result<HelixBinary, CompileError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bundler
impl RefUnwindSafe for Bundler
impl Send for Bundler
impl Sync for Bundler
impl Unpin for Bundler
impl UnwindSafe for Bundler
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