UNPKG

@zohodesk/client_build_tool

Version:

A CLI tool to build web applications and client libraries

33 lines (27 loc) 685 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.entryConfig = entryConfig; var _constants = require("../../constants"); function entryConfig(options) { const { hasEFC, entryFile, entryPointName } = options.efc; const { entryFile: mainEntry, AdditionalEntry } = options.app; const entry = { main: (0, _constants.joinWithAppPath)(mainEntry) }; if (hasEFC && entryFile) { entry[entryPointName] = (0, _constants.joinWithAppPath)(entryFile); } if (AdditionalEntry.enable) { entry[AdditionalEntry.entryPointName] = (0, _constants.joinWithAppPath)(AdditionalEntry.entryFile); } return entry; }