I have this code:
\"use strict\"; import browserSync from \"browser-sync\"; import httpProxy from \"http-proxy\"; let proxy = httpProxy.createProxyServer({
In year 2018:
Install following packages if you haven't yet:
npm install babel-loader babel-preset-react
webpack.config.js
{ test: /\.jsx?$/, exclude: /node_modules/, use: [ { loader: 'babel-loader', options: { presets: ['es2015','react'] // <--- !`react` must be part of presets! } } ], }