title: Webpack Compilation Error with Typescript and JSForce
body: <p>I am using JSForce with Typescript with CypressIO however each time i attempt to run my code i receive the following:</p>
  
  <pre><code>Error: Webpack Compilation Error
  ./node_modules/csv-parse/lib/es5/sync.d.ts 3:7
  Module parse failed: Unexpected token (3:7)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  | import * as csvParse from './index';
  | 
  &gt; export = parse;
  | 
  | declare function parse(input: Buffer | string, options?: csvParse.Options): any;
   @ ./node_modules/jsforce/lib/csv.js 5:19-52
   @ ./node_modules/jsforce/lib/record-stream.js
   @ ./node_modules/jsforce/lib/core.js
   @ ./node_modules/jsforce/lib/jsforce.js
   @ ./node_modules/jsforce/index.js
   @ ./cypress/test/test.ts
  
  ./node_modules/csv-parse/lib/es5/index.d.ts 7:7
  Module parse failed: Unexpected token (7:7)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  | import * as stream from "stream";
  | 
  &gt; export = parse;
  | 
  | declare function parse(input: Buffer | string, options?: parse.Options, callback?: parse.Callback): parse.Parser;
   @ ./node_modules/jsforce/lib/csv.js 4:15-43
   @ ./node_modules/jsforce/lib/record-stream.js
   @ ./node_modules/jsforce/lib/core.js
   @ ./node_modules/jsforce/lib/jsforce.js
   @ ./node_modules/jsforce/index.js
   @ ./cypress/test/test.ts
  </code></pre>
  
  <p>I have installed <code>@types/jsforce</code>. I have also installed <code>ts-loader</code> and <code>json-loader</code> (was a potential solution i saw) however no luck. My webpack config currently looks like this:</p>
  
  <pre><code>module.exports = {
      resolve: {
          extensions: [".ts", ".d.ts", ".js"]
      },
      module: {
          rules: [
              {
                  test: /\.ts$/,
                  exclude: [/node_modules/],
                  use: [{
                      loader: "ts-loader",
                      options: { transpileOnly: true }
                  }]
              },
              {
                  test: /\.d\.ts$/,
                  exclude: [/node_modules/],
                  use: [{
                      loader: "ts-loader",
                      options: { transpileOnly: true }
                  }]
              },
              {
                  test: /\.js$/,
                  exclude: [/node_modules/],
                  use: [{
                      loader: "raw-loader",
                      options: { transpileOnly: true }
                  }]
              },
              {
                  test: /\.json$/,
                  exclude: [/node_modules/],
                  use: [{
                      loader: "json-loader",
                      options: { transpileOnly: true }
                  }]
              }
          ]
      },
      target: 'node',
      mode: "development"
  };
  </code></pre>
  
  <p>I am importing jsForce like <code>const jsforce: any = require('jsforce');</code>. I'm not sure what other loader I should be using here.</p>