Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertNoDuplicates throw with more context #10419

Merged

Commits on Sep 9, 2019

  1. assertNoDuplicates throw with more context

    When users see errors like
    
    ```
    Duplicate plugin/preset detected.
    If you'd like to use two separate instances of a plugin,
    they need separate names, e.g.
    
      plugins: [
        ['some-plugin', {}],
        ['some-plugin', {}, 'some unique name'],
      ]
    ```
    
    It can be difficult to determine the source of the conflict, especially
    in a larger build system.
    
    This commit outputs what is known about the plugins that actually
    conflict, which can be helpful for users to determine the root cause of
    the conflict.
    
    Partially addresses babel#9778
    hjdivad committed Sep 9, 2019
    Copy the full SHA
    f7fe123 View commit details
    Browse the repository at this point in the history