Skip to content

Commit

Permalink
Use Buffer.from() (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
pioug committed Jul 6, 2018
1 parent bc57938 commit 1809f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -25,7 +25,7 @@ module.exports = function(options) {

contents = file.contents.toString("utf8");
contents = pp.preprocess(contents, context, extension);
file.contents = new Buffer(contents);
file.contents = Buffer.from(contents);

callback(null, file);
}
Expand Down

0 comments on commit 1809f37

Please sign in to comment.