"use strict";var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},__assign.apply(this,arguments)},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,_=t.length;n<_;n++)!a&&n in t||(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};exports.__esModule=!0;var html_webpack_plugin_1=__importDefault(require("html-webpack-plugin")),webpack_1=__importDefault(require("webpack")),component_base_config_1=__importDefault(require("./component.base.config")),path=require("path");function default_1(e,t){var r="development";process.env.BABEL_ENV=r;var a=(0,component_base_config_1.default)(r,t);return a.plugins=__spreadArray(__spreadArray([],a.plugins,!0),[new html_webpack_plugin_1.default({inject:"body",template:path.join(__dirname,"../../lib/preview/index.html")}),new webpack_1.default.HotModuleReplacementPlugin],!1),__assign(__assign({},a),{context:__dirname,entry:e,mode:"development",devtool:"source-map",externals:{immer:"immer"}})}exports.default=default_1;