"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.startDebugServer = exports.webpack = void 0;
const tslib_1 = require("tslib");
/* eslint-disable import/first -- 本文件禁用，要在入口最前面注册别名，后面的 import 才能使用别名；另外要先加载 dotenv，才能创建 redis 连接 */
const module_alias_1 = tslib_1.__importDefault(require("module-alias"));
module_alias_1.default.addAliases({
    '@': __dirname,
    'package.json': '../package.json',
});
const app_debug_1 = require("@/app-debug");
require("./process-handler");
var app_dev_1 = require("@/app-dev");
Object.defineProperty(exports, "webpack", { enumerable: true, get: function () { return app_dev_1.webpack; } });
const startDebugServer = (options) => {
    global.debugAppArgv = Object.assign({ host: '0.0.0.0', port: 38989, static: '', entry: 'dist/dev/index.bundle', open: true, verbose: false, env: "hippy" /* Hippy */, iWDPPort: 9000 }, (options || {}));
    app_debug_1.startDebugServer();
};
exports.startDebugServer = startDebugServer;
