Update NormalModuleReplacementPlugin to new api
Fix for ``` Error: NormalModuleFactory.afterResolve is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created. at hooks.afterResolve.callAsync (webpack/lib/NormalModuleFactory.js:192:14) ```
This commit is contained in:
parent
56b8aa7006
commit
7b87312b5b
|
@ -40,7 +40,6 @@ class NormalModuleReplacementPlugin {
|
|||
result.request = newResource;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
});
|
||||
nmf.hooks.afterResolve.tap("NormalModuleReplacementPlugin", result => {
|
||||
const createData = result.createData;
|
||||
|
@ -63,7 +62,6 @@ class NormalModuleReplacementPlugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue