title: Gulp error using react, .NET Core, es2015, babel, browserify
body: <p>I am trying to bundle my project, but I am getting this error with any build task. I have tried three separate bundle methods using Visual Studio in a .NET Core app. Here is one:</p>
  
  <pre><code>gulp.task('babelify', function () {
      return browserify({
          extensions: ['.jsx', '.js'],
          entries: 'Client/app/main.js',
      })
        .transform(babelify.configure({ presets: ["es2015","react"] }))
        .bundle()
        .on("error", function (err) { console.log("Error : " + err.message); })
        .pipe(source('bundle.js'))
        .pipe(gulp.dest('.wwwroot/js'));
  });
  </code></pre>
  
  <p>Here is my error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Unexpected token ILLEGAL while parsing file: C:\code\PasswordManager\src\PasswordManager.Web\Client\app\main.js
  Process terminated with code 0.
  </code></pre>
  
  <p>This bundle build works on OSX with Node, but when porting to .NET Core, it breaks.</p>
  
  <p>Any suggestions? I have heard Windows has some node_module nesting issues...</p>
  
  <p>Here is <code>main.js</code>, but I really do not think this is the issue:</p>
  
  <pre><code>import React from 'react';
  import Router from 'react-router';
  import ReactDOM from 'react-dom';
  import createBrowserHistory from 'history/lib/createBrowserHistory';
  import routes from './routes';
  import Header from './components/Header';
  
  let history = createBrowserHistory();
  
  ReactDOM.render(&lt;Router history={history}&gt;{routes}&lt;/Router&gt;, document.getElementById('app'));
  </code></pre>