title: Bundle error using webpack for Electron application `Cannot resolve module 'electron'`
body: <p>I am trying to create an <em>Electron</em> application with <em>React</em>. I use <em>Webpack</em> to compile the <em>React JSX</em> syntax, but when I try to compile with <code>webpack</code> command, I got this error:</p>
  <blockquote>
  <p>ERROR in ./app.jsx
  Module not found: Error: Cannot resolve module 'electron' in /Users/masterT/Downloads/gist</p>
  <p>@ ./app.jsx 6:18-37</p>
  </blockquote>
  <p>Here is the <a href="https://gist.github.com/masterT/56891033a25b6114c839" rel="noreferrer">application code</a>.</p>
  <p>I am doing something wrong?</p>
  <p>Thanks!</p>