Skip to content

Commit

Permalink
fix: Replace deprecated Buffer with Buffer.from
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Schmidt authored and ChadKillingsworth committed Jan 3, 2021
1 parent 8e738c1 commit e1a402b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/closure-compiler-plugin.js
Expand Up @@ -1048,7 +1048,7 @@ class ClosureCompilerPlugin {
// Ignore errors (EPIPE) if the compiler input stream is closed
compilerProcess.stdin.on('error', (err) => {});

const buffer = new Buffer(JSON.stringify(sources), 'utf8');
const buffer = Buffer.from(JSON.stringify(sources), 'utf8');
const readable = new Readable();
readable._read = () => {};
readable.push(buffer);
Expand Down

0 comments on commit e1a402b

Please sign in to comment.