Merge pull request #98 from corbinu/master

Fix import TextDecoder in output for nodejs config
This commit is contained in:
Alex Crichton 2018-03-31 00:12:13 +02:00 committed by GitHub
commit f86d227d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!("