mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-17 06:51:24 +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 {
|
||||
self.globals.push_str(&format!("
|
||||
const TextDecoder = require('util');
|
||||
const TextDecoder = require('util').TextDecoder;
|
||||
"));
|
||||
} else if !self.config.browser {
|
||||
self.globals.push_str(&format!("
|
||||
|
Reference in New Issue
Block a user