mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 05:51:23 +00:00
Added umd switch
This commit is contained in:
@ -17,6 +17,7 @@ pub struct Bindgen {
|
||||
path: Option<PathBuf>,
|
||||
nodejs: bool,
|
||||
browser: bool,
|
||||
umd: bool,
|
||||
debug: bool,
|
||||
typescript: bool,
|
||||
}
|
||||
@ -36,6 +37,7 @@ impl Bindgen {
|
||||
path: None,
|
||||
nodejs: false,
|
||||
browser: false,
|
||||
umd: false,
|
||||
debug: false,
|
||||
typescript: false,
|
||||
}
|
||||
@ -56,6 +58,11 @@ impl Bindgen {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn umd(&mut self, umd: bool) -> &mut Bindgen {
|
||||
self.umd = umd;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn debug(&mut self, debug: bool) -> &mut Bindgen {
|
||||
self.debug = debug;
|
||||
self
|
||||
|
Reference in New Issue
Block a user