Skip to content

Commit

Permalink
replace new Buffer with Buffer.from
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadav Sinai committed Oct 4, 2018
1 parent 74ce27d commit 6a17835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svgstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class WebpackSvgStore {
return Buffer.byteLength(fileContent, 'utf8');
},
source: function () {
return new Buffer(fileContent);
return Buffer.from(fileContent);
}
};
// done
Expand Down

0 comments on commit 6a17835

Please sign in to comment.