In webpack 4, Tapable#apply and Tapable#plugin raise a deprecation notice.
Tapable#apply(plugin) must be replaced by a call to plugin.apply
Tapable#plugin(hook, fn) must be replaced by a call to hook.tap (or hook.tapAsync)
Note: This is breaking change because it drops webpack < 4 compatibility.
For more info:
Highly suggest to refractor with Target design which uses webpack native plugins such as JsonpTemplatePlugin. This leads to incompatibility with lower webpack version.
In webpack 4,
Tapable#apply
andTapable#plugin
raise a deprecation notice.Tapable#apply(plugin)
must be replaced by a call toplugin.apply
Tapable#plugin(hook, fn)
must be replaced by a call tohook.tap
(orhook.tapAsync
)Note: This is breaking change because it drops webpack < 4 compatibility.
For more info:
Target
design which uses webpack native plugins such asJsonpTemplatePlugin
. This leads to incompatibility with lower webpack version.