File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class LibManifestPlugin {
1313 }
1414
1515 apply ( compiler ) {
16- compiler . plugin ( "emit ", ( compilation , callback ) => {
16+ compiler . hooks . emit . tapAsync ( "LibManifestPlugin ", ( compilation , callback ) => {
1717 asyncLib . forEach ( compilation . chunks , ( chunk , callback ) => {
1818 if ( ! chunk . isInitial ( ) ) {
1919 callback ( ) ;
@@ -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 = new 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 ) ;
You can’t perform that action at this time.
0 commit comments