title: Why do I need to add dependencies' babel plugin to my project?
body: <p>The original quesiont was put on github issue: <a href="https://github.com/babel/babel/issues/5803" rel="nofollow noreferrer">https://github.com/babel/babel/issues/5803</a>, but seems no response, so I think stackoverflow would be better place to ask:</p>
  
  <p>The problem is:</p>
  
  <p>When I add third party react component to my project, I always find out this: </p>
  
  <pre><code>Module build failed: ReferenceError: Unknown plugin "transform-object-assign" specified in "/Users/apple/Documents/.../react-z/node_modules/react-slick/.babelrc" at 0, attempted to resolve relative to
  </code></pre>
  
  <p>The third party component that I imported needs a babel plugin that I don't need.</p>
  
  <p>I can add to my project, of course, then I add another third party react component, which needs babel-plugin-transform-replace-object-assign.</p>
  
  <p>This quite embarrasses me that they do similar things, but I need to add them both to my project to make them work.</p>
  
  <pre><code>{
    "presets": [
      "es2015",
      "react",
      "stage-0"
    ],
    "plugins": [
      "transform-object-rest-spread",
      "transform-object-assign",
      [
        "transform-replace-object-assign",
        "object.assign"
      ]
    ]
  }
  </code></pre>
  
  <p>Can someone explain why or show me how to do it in right way?</p>
  
  <p>Thanks a lot.</p>