"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _default;

function _react() {
  const data = _interopRequireDefault(require("react"));

  _react = function _react() {
    return data;
  };

  return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _default(webpackConfig, opts) {
  webpackConfig.devtool(opts.devtool || 'cheap-module-source-map').output.pathinfo(true);
  webpackConfig.plugin('hmr').use(require('webpack/lib/HotModuleReplacementPlugin'));
  webpackConfig.when(!!opts.devServer, webpackConfig => webpackConfig.merge({
    devServer: opts.devServer
  }));
}