Webpack DefinePlugin from async function
<p>I'd like to define some constants that are returned from an asynchronous resource. Is there anyway to do this in Webpack? </p>

<pre><code>/* webpack.config.js */
module.exports = {
    ...,
    plugins: [
        new webpack.DefinePlugin({
            someVar: /* RETURN VARIABLE FROM ASYNC FUNCTION */
        })
    ]
}
</code></pre>