Babel not compiling For - of loop
<p>I installed <em>babel-preset-0</em> and included it in the <code>.babelrc</code> file, I also installed the <code>transform-runtime</code>, See my files below, But <strong><em>For of</em></strong> loop code is throwing error while compiling</p>

<p>code</p>

<pre class="lang-js prettyprint-override"><code>var mySet = new Set();

mySet.add(1);
mySet.add(5);
mySet.add("some text");

var myArr = [v for (v of mySet)];// throws error
</code></pre>



<p><strong>Webpack.config.js</strong></p>

<pre class="lang-js prettyprint-override"><code>loaders: [
                { test: path.join(__dirname, 'es6'),
                  loader: 'babel-loader' ,
                   // Options to configure babel with
                  query: {
                    plugins: ['transform-runtime'],
                    presets: ['es2015', 'stage-0'],
                    cacheDirectory: true,
                        plugins: [
                          'transform-runtime',                         
                          'transform-decorators-legacy',
                        ],
                  },
                  exclude: [
                              path.resolve(__dirname, "node_modules"),
                            ]
              },
</code></pre>



<p><strong>.babelrc</strong></p>

<pre class="lang-js prettyprint-override"><code>{
  "presets": ["es2015", "stage-0"],
  "plugins": ["transform-decorators-legacy"]
}
</code></pre>