title: Require module and pass it in object data
body: <p>I have a code:</p>
  <pre><code>let src = require('../../animations/' + player.getAttribute('data-src') + '.json')
  </code></pre>
  <p>When I want pass src object data to other object:</p>
  <pre><code>let animation = lottie.loadAnimation({ animationData: src })
  </code></pre>
  <p>I got nothing. If I set timeout:</p>
  <pre><code>setTimeout(()=&gt;{ let animation = anim.loadAnimation({ animationData: src }) }, 100)
  </code></pre>
  <p>Then working. But I get other errors. How I can resolve this without timeout?</p>