Skip to content

Commit 4f358af

Browse files
authored
Merge pull request webpack#6102 from webpack/feature/tapable-upgrade-lib-manifest-plugin
feat(tapable): upgrade LibManifestPlugin to Tapable v1
2 parents 8678681 + 04555e3 commit 4f358af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/LibManifestPlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class LibManifestPlugin {
5151
return obj;
5252
}, Object.create(null))
5353
};
54-
const content = new Buffer(JSON.stringify(manifest), "utf8"); //eslint-disable-line
54+
const content = Buffer.from(JSON.stringify(manifest), "utf8");
5555
compiler.outputFileSystem.mkdirp(path.dirname(targetPath), err => {
5656
if(err) return callback(err);
5757
compiler.outputFileSystem.writeFile(targetPath, content, callback);

0 commit comments

Comments
 (0)