Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
fix(index): use Buffer.from instead of deprecated new Buffer (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR authored and michael-ciniawsky committed Mar 3, 2018
1 parent b4be0c8 commit 457618b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -31,7 +31,7 @@ export default function loader(src) {
// No limit or within the specified limit
if (!limit || src.length < limit) {
if (typeof src === 'string') {
src = new Buffer(src);
src = Buffer.from(src);
}

return `export default ${JSON.stringify(
Expand Down

0 comments on commit 457618b

Please sign in to comment.