<p dir="auto">Hello.</p>
<p dir="auto">We using react for some our projects and found, what on staging servers it start generate warning about "It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster".</p>
<p dir="auto">We still need all possible warnings about propTypes or about controlled/uncontrolled components to debug all issues on environment, which as close as possible to production, but still is not production. In this case "staging" environment should be builded with minification to check app before delivering on production.</p>
<p dir="auto">Proposal: remove this warning (</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/facebook/react/blob/67f8524e88abbf1ac0fd86d38a0477d11fbc7b3e/src/renderers/dom/ReactDOM.js#L94-L100">react/src/renderers/dom/ReactDOM.js</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 94 to 100
      in
      <a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/67f8524e88abbf1ac0fd86d38a0477d11fbc7b3e">67f8524</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L94" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="94"></td>
          <td id="LC94" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">warning</span><span class="pl-kos">(</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L95" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="95"></td>
          <td id="LC95" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">   <span class="pl-kos">(</span><span class="pl-en">testFunc</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">||</span> <span class="pl-en">testFunc</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s">'testFn'</span><span class="pl-kos">)</span> <span class="pl-c1">!==</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">,</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L96" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="96"></td>
          <td id="LC96" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">   <span class="pl-s">'It looks like you\'re using a minified copy of the development build '</span> <span class="pl-c1">+</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td>
          <td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">   <span class="pl-s">'of React. When deploying React apps to production, make sure to use '</span> <span class="pl-c1">+</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td>
          <td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">   <span class="pl-s">'the production build which skips development warnings and is faster. '</span> <span class="pl-c1">+</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td>
          <td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">   <span class="pl-s">'See https://fb.me/react-minification for more details.'</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L100" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="100"></td>
          <td id="LC100" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
) for <code class="notranslate">NODE_ENV === 'staging'</code> env, if this possible.<p></p>
<p dir="auto">Thanks.</p>
<p dir="auto">Hello. Since upgrading to v15 I get this all over the place in my unit tests:</p>
<p dir="auto"><code class="notranslate">Warning: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.</code></p>
<p dir="auto">This warning makes sense in prod but in my case, my toolchain is a little different; I use React with Scala and build a special <code class="notranslate">test-deps.js</code> containing all external JS required by unit tests. Minimising it means it loads faster and so I end up with a valid case for a minimisation of the React dev.</p>
<p dir="auto">Is there a way to remove this warning? It appears a heap of times as my tests are concurrent.</p>