artembatura / zero-scriptsjs

A modular approach to develop modern JavaScript projects with minimal configuration.
MIT License
6 stars 1 forks source link

Violation of the modular approach #595

Closed artembatura closed 4 years ago

artembatura commented 4 years ago

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 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

artembatura commented 4 years ago

Closed in #606