Replace deprecated new Buffer(string) constructor with Buffer.from(string)
This commit is contained in:
parent
7ba50448fd
commit
58612f869a
@ -124,7 +124,7 @@ function createStringSource(filename, content) {
|
||||
source._read = function () {
|
||||
this.push(new Vinyl({
|
||||
path: filename,
|
||||
contents: new Buffer(content),
|
||||
contents: Buffer.from(content),
|
||||
}));
|
||||
this.push(null);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user