"use strict";exports.__esModule=true;exports.base=void 0;var _lodash=_interopRequireDefault(require("next/dist/compiled/lodash.curry"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}const base=(0,_lodash.default)(function base(ctx,config){config.mode=ctx.isDevelopment?'development':'production';config.name=ctx.isServer?'server':'client';config.target=ctx.isServer?'node':'web';// https://webpack.js.org/configuration/devtool/#development
if(ctx.isDevelopment){if(ctx.isServer||process.platform==='win32'){// Non-eval based source maps are slow to rebuild, so we only enable
// them for the server and Windows. Unfortunately, eval source maps
// are not supported by Node.js, and are slow on Windows.
config.devtool='inline-source-map';}else{// `eval-source-map` provides full-fidelity source maps for the
// original source, including columns and original variable names.
// This is desirable so the in-browser debugger can correctly pause
// and show scoped variables with their original names.
config.devtool='eval-source-map';}}else{// Enable browser sourcemaps
if(ctx.productionBrowserSourceMaps){config.devtool='source-map';}else{config.devtool=false;}}if(!config.module){config.module={rules:[]};}config.module.strictExportPresence=true;return config;});exports.base=base;