Skip to content

Commit 4dc74f6

Browse files
committed
Replace deprecated new Buffer() with Buffer.from()
1 parent 6345a72 commit 4dc74f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function validateOptions(opts) {
2525
function createFile(filename, output, buildResponse, sourceMap) {
2626
var newFile = new Vinyl({
2727
path: filename,
28-
contents: new Buffer(output)
28+
contents: Buffer.from(output)
2929
});
3030
// Add a string containing the list of added dependencies for
3131
// debugging purposes.

0 commit comments

Comments
 (0)