title: Webpack with WordPress Plugins, what's the best way?
body: <p>I understand webpack (at least enough to get me into trouble). How could a WordPress plugin author build modular plugins (ie one plugin extends another) that utilizes webpack in the most efficient manner possible?</p>
  
  <p>I would think that if I created Plugin-A using webpack and then created Plugin-B, which extends Plugin-A, also with webpack, that a certain amount of the bundled JS would be duplicated between the plugins.</p>
  
  <p>It would be ideal if I could dynamically append to the webpack config from Plugin-A when Plugin-B loads.</p>
  
  <p>Is there a built in method of making something like this work with webpack?</p>