mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 22:41:24 +00:00
Add electron support via --omit-imports (#1958)
This commit is contained in:
@ -316,6 +316,11 @@ impl<'a> Context<'a> {
|
||||
|
||||
fn js_import_header(&self) -> Result<String, Error> {
|
||||
let mut imports = String::new();
|
||||
|
||||
if self.config.omit_imports {
|
||||
return Ok(imports)
|
||||
}
|
||||
|
||||
match &self.config.mode {
|
||||
OutputMode::NoModules { .. } => {
|
||||
for (module, _items) in self.js_imports.iter() {
|
||||
|
Reference in New Issue
Block a user