/p>
<pre><code class="lang-javascript">const path = require(&#39;path&#39;)

module.exports = {
    entry: &#39;./src/index.js&#39;,
    output: {
        path: path.resolve(__dirname, &#39;./bin&#39;),
        filename: &#39;app.js&#39;,
    },
    module: {
        rules: [{
            test: /\.js$/,
            exclude: /node_modules/,
            loader: &#39;babel-loader&#39;
        }]
    }
}
</code></pre>
<p>For those familiar with Webpack already, please note that adding the Babel options to the <