<h2 dir="auto">Feature Request</h2>
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
I've recently had an issue with 2 babel-plugins where the plugin would cause issues in dependencies.<br>
Though there are PRs out to fix this issue in both, it may be better for a solution on the babel level for other places where such an issue could occur.<br>
Reference:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="414337550" data-permission-text="Title is private" data-url="https://github.com/PavelDymkov/babel-plugin-auto-import/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/PavelDymkov/babel-plugin-auto-import/pull/4/hovercard" href="https://github.com/PavelDymkov/babel-plugin-auto-import/pull/4">PavelDymkov/babel-plugin-auto-import#4</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="416617630" data-permission-text="Title is private" data-url="https://github.com/vihanb/babel-plugin-wildcard/issues/32" data-hovercard-type="pull_request" data-hovercard-url="/vihanb/babel-plugin-wildcard/pull/32/hovercard" href="https://github.com/vihanb/babel-plugin-wildcard/pull/32">vihanb/babel-plugin-wildcard#32</a></p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
I think it would be good for there to be an <code class="notranslate">ignore</code> option that could be applied on a given plugin.<br>
IE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = function(api) {
  ...
    plugins: [
      ['auto-import', {
        declarations: [
          { path: 'react', default: 'React',  members: ['Component'] },
          { path: 'react-native', members: ['View', 'Text', 'StyleSheet', 'Platform'] },
        ],
        ignore: 'node_modules',
      }],
      ['wildcard', {ignore: 'node_modules'},
    ],
  };
};"><pre class="notranslate"><code class="notranslate">module.exports = function(api) {
  ...
    plugins: [
      ['auto-import', {
        declarations: [
          { path: 'react', default: 'React',  members: ['Component'] },
          { path: 'react-native', members: ['View', 'Text', 'StyleSheet', 'Platform'] },
        ],
        ignore: 'node_modules',
      }],
      ['wildcard', {ignore: 'node_modules'},
    ],
  };
};
</code></pre></div>
<p dir="auto">Of course, I'm open to other ways of doing this.</p>
<p dir="auto"><strong>Describe alternatives you've considered</strong><br>
Other alternatives is to request PRs on any plugins that are problematic, but sometimes they take a while to get merged (at the time of posting, neither PRs of the two problematic plugins are merged).<br>
I guess I could republish the plugins or just install them from my own repository, but that may not be the best solution either.</p>
<p dir="auto"><strong>Teachability, Documentation, Adoption, Migration Strategy</strong><br>
Users would be able to use this quite easily. In terms of Docs, I think it could be mentioned as an option for plugins similar to the regular <code class="notranslate">ignore</code> option</p>
<p dir="auto">Hi there,</p>
<p dir="auto">I searched for existing issues on this matter but couldn't find anything... I would like to know: would it be feasible to add <code class="notranslate">core-js</code> as a dependency of <code class="notranslate">babel-runtime</code> and just have <code class="notranslate">babel-runtime</code> re-export its code, instead of bundling it like it's currently done?</p>
<p dir="auto">Right now I have a library that is compiled from ES6 using babel, and I'm using the <code class="notranslate">runtime</code> transform so that the polyfills don't get duplicated when using it along with other babel-compiled ES6 libraries.</p>
<p dir="auto">So far so good, however an ES5 project that uses my library also uses <code class="notranslate">core-js</code> directly, and this is causing the <code class="notranslate">core-js</code> code to be duplicated during the final Browserify build step, increasing the build size.</p>
<p dir="auto">I assume there might be a reason for bundling <code class="notranslate">core-js</code>, if so, is there another way I can work around this?</p>
<p dir="auto">Thanks.</p>