"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const WebpackTools = __importStar(require("../webpack"));
exports.default = (webpackConfigInput = {}, buildOptions) => {
    const builder = new WebpackTools.WebpackBuilder(buildOptions, webpackConfigInput);
    const configs = builder
        // Base Config
        .use(WebpackTools.BaseConfig())
        // Hot Module Replacement
        .use(WebpackTools.HotModuleReplacement())
        // Source Maps
        .use(WebpackTools.SourceMaps())
        // Patch React Native
        .use(WebpackTools.ReactNative())
        // Use Custom App.js feature
        .use(WebpackTools.CustomApp())
        // Add Jarvis Dashboard
        .use(WebpackTools.Jarvis())
        // Generate assets.json
        .use(WebpackTools.AssetsJson())
        // // Generate configs.json
        // .use(WebpackTools.ConfigsJson())
        // .use(WebpackTools.ClientHTML())
        ///// Loaders
        // CSS Loader
        .use(WebpackTools.LoaderCss())
        // TS Loader
        .use(WebpackTools.LoaderTypescript())
        // // JS Loader
        // .use(WebpackTools.LoaderJavascript())
        // Finally, merge user input overrides
        .merge(webpackConfigInput)
        // Build
        .build();
    return configs;
};
//# sourceMappingURL=webpack.config.client.js.map