Since findPlugin method requires Plugin class as argument it's affects that we cannot get some Plugin without having this plugin as dependency. So we cannot use plugin-webpack-react without plugin-webpack-babel and plugin-webpack-eslint. And it's breaks all modular approach.
Solution
Extend core API so that findPlugin method should accept name: string or id: string and it will give ability to get plugin instance without having this plugin in dependencies
Problem
Since
findPlugin
method requires Plugin class as argument it's affects that we cannot get some Plugin without having this plugin as dependency. So we cannot useplugin-webpack-react
withoutplugin-webpack-babel
andplugin-webpack-eslint
. And it's breaks all modular approach.Solution
Extend core API so that
findPlugin
method should acceptname: string
orid: string
and it will give ability to get plugin instance without having this plugin in dependencies