mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-19 16:01:23 +00:00
Fix import TextDecoder in output for nodejs config
This commit is contained in:
@ -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!("
|
||||||
|
Reference in New Issue
Block a user