mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-10 06:06:06 +00:00
Merge pull request #98 from corbinu/master
Fix import TextDecoder in output for nodejs config
This commit is contained in:
commit
f86d227d51
@ -645,7 +645,7 @@ impl<'a> Context<'a> {
|
|||||||
}
|
}
|
||||||
if self.config.nodejs {
|
if self.config.nodejs {
|
||||||
self.globals.push_str(&format!("
|
self.globals.push_str(&format!("
|
||||||
const TextDecoder = require('util');
|
const TextDecoder = require('util').TextDecoder;
|
||||||
"));
|
"));
|
||||||
} else if !self.config.browser {
|
} else if !self.config.browser {
|
||||||
self.globals.push_str(&format!("
|
self.globals.push_str(&format!("
|
||||||
|
Loading…
x
Reference in New Issue
Block a user