"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

_Object$defineProperty(exports, "__esModule", {
  value: true
});

exports.default = void 0;

var _path = require("path");

var _fs = require("fs");

var _webpackPreprocessor = _interopRequireDefault(require("@cypress/webpack-preprocessor"));

var _webpackConfig = _interopRequireDefault(require("../../configs/webpack/webpack.config.development"));

var _default = (on, config) => {
  const options = {
    webpackOptions: {}
  };
  options.webpackOptions.mode = 'development';
  options.webpackOptions.devtool = _webpackConfig.default.devtool;
  options.webpackOptions.module = _webpackConfig.default.module;
  options.webpackOptions.plugins = _webpackConfig.default.plugins;
  options.webpackOptions.resolveLoader = _webpackConfig.default.resolveLoader;
  options.webpackOptions.resolve = _webpackConfig.default.resolve;
  on('file:preprocessor', (0, _webpackPreprocessor.default)(options));
  return config;
};

exports.default = _default;
module.exports = exports.default;