title: webpack import error with node-postgres ('pg'.Client)
body: <p>Trying to bundle the following file with Webpack fails with </p>
  
  <blockquote>
    <p>ERROR in ./~/pg/lib/native/index.js Module not found: Error: Cannot
    resolve module 'pg-native' in
    .../node_modules/pg/lib/native
    @ ./~/pg/lib/native/index.js 9:13-33</p>
  </blockquote>
  
  <p>I tried several <code>ignore</code> statements in the <em>.babelrc</em> but didnt get it running... </p>
  
  <p>The test-file i want to bundle: <em>handler.js</em></p>
  
  <pre><code>const Client = require('pg').Client;
  
  console.log("done");
  </code></pre>
  
  <p><em>webpack.config.js</em></p>
  
  <pre><code>module.exports = {
    entry: './handler.js',
    target: 'node',
    module: {
      loaders: [{
        test: /\.js$/,
        loaders: ['babel'],
        include: __dirname,
        exclude: /node_modules/,
      }]
    }
  };
  </code></pre>
  
  <p><em>.babelrc</em></p>
  
  <pre><code>{
    "plugins": ["transform-runtime"],
    "presets": ["es2015", "stage-1"]
  }
  </code></pre>
  
  <p><em>package.json</em></p>
  
  <pre><code>"dependencies": {
    "postgraphql": "^2.4.0",
    "babel-runtime": "6.11.6"
  },
  "devDependencies": {
    "babel-core": "^6.13.2",
    "babel-loader": "^6.2.4",
    "babel-plugin-transform-runtime": "^6.12.0",
    "babel-preset-es2015": "^6.13.2",
    "babel-preset-stage-0": "^6.5.0",
    "babel-polyfill": "6.13.0",
    "serverless-webpack": "^1.0.0-rc.3",
    "webpack": "^1.13.1"
  }
  </code></pre>
  
  <p>Somewhat related github-issues:</p>
  
  <ul>
  <li><a href="https://github.com/brianc/node-postgres/issues/1187" rel="noreferrer">https://github.com/brianc/node-postgres/issues/1187</a></li>
  <li><a href="https://github.com/serverless/serverless-runtime-babel/issues/8" rel="noreferrer">https://github.com/serverless/serverless-runtime-babel/issues/8</a></li>
  </ul>