module.exports = {
  entry: './app/app.jsx',
  output: {
    path: __dirname,
    filename: './public/bundle.js'
  },
  resolve: {
    root: __dirname,
    alias: {
      Main: 'app/components/Main.jsx',
      Nav: 'app/components/Nav.jsx',
      Weather: 'app/components/Weather.jsx',
      WeatherForm: 'app/components/WeatherForm.jsx',
      WeatherMessage: 'app/components/WeatherMessage.jsx',
      About: 'app/components/About.jsx',
      Examples: 'app/components/Examples.jsx',
      openWeatherMap: 'app/api/openWeatherMap.jsx'
    },
    extensions: ['', '.js', '.jsx']
  },
  module: {
    loaders: [
      {
        loader: 'babel-loader',
        query: {
          presets: ['react', 'es2015', 'stage-0']
        },
        test: /\.jsx?$/,
        exclude: /(node_modules|bower_components)/
      }
    ]
  },
  devtool: 'cheap-module-eval-source-map'
};


/*
Due to a library bug there is a small issue in the next video.
In the next lecture you'll learn how to setup source maps by setting a
"devtool" property in webpack.config.js. In the lecture I set the value to
"cheap-module-eval-source-map". This might cause the source maps to not work
as shown in the video.

If you are getting this error, try setting the value to either
"inline-source-map" or "eval-source-map" instead.

*/

@@ -867,436 +867,4 @@
 %0A%7D;%0A
-%0A%0A/*%0ADue to a library bug there is a small issue in the next video.%0AIn the next lecture you'll learn how to setup source maps by setting a%0A%22devtool%22 property in webpack.config.js. In the lecture I set the value to%0A%22cheap-module-eval-source-map%22. This might cause the source maps to not work%0Aas shown in the video.%0A%0AIf you are getting this error, try setting the value to either%0A%22inline-source-map%22 or %22eval-source-map%22 instead.%0A%0A*/%0A

update webpack