title: Can react-native bundler detect unused files?
body: <p>Consider having a scenario, where we build our <code>react-native</code> App with <code>release</code> mode while having code like below:</p>
  
  <pre><code>let img;
  if ( __DEV__ ) {
    img = require('./debug-image.png');
  } else {
    img = require('./real-image.png');
  }
  </code></pre>
  
  <p>My question is, will both <code>debug-image.png</code> and <code>real-image.png</code> get bundled into the <code>APK</code> (even though the <code>debug-image.png</code> is never used anywhere else), or does the bundler detect that the <code>debug-image.png</code> file is not used (and does NOT include it into the bundle)?</p>