text: import path from 'path';
    
  const config = {
    entry: './client/src',
    output: {
      path: path.join(__dirname, 'public/build/'),
      filename: 'bundle.js'
    },
    module: {
      rules: [
        { test: /\.(js|jsx)$/,
          include: path.join(__dirname, 'client/src'),
          exclude: ['node_modules'],
          use: [
            { loader: 'babel-loader',
              options: {
                presets: ['react', 'es2015', 'stage-0']
              }
            }
          ]
        }
      ]
    }
  };
  
  export default config;