(...keys)
| 1718 | } |
| 1719 | |
| 1720 | _getEntryModulesByArch(...keys) { |
| 1721 | const configEntryModule = this.get(...keys); |
| 1722 | const entryModulesByArch = Object.create(null); |
| 1723 | |
| 1724 | if (typeof configEntryModule === "string" || |
| 1725 | configEntryModule === false) { |
| 1726 | // If the top-level config value is a string or false, use that |
| 1727 | // value as the entry module for all architectures. |
| 1728 | entryModulesByArch["os"] = configEntryModule; |
| 1729 | entryModulesByArch["web"] = configEntryModule; |
| 1730 | } else if (configEntryModule && |
| 1731 | typeof configEntryModule === "object") { |
| 1732 | // If the top-level config value is an object, use its properties to |
| 1733 | // select an entry module for each architecture. |
| 1734 | Object.keys(configEntryModule).forEach(where => { |
| 1735 | mapWhereToArches(where).forEach(arch => { |
| 1736 | entryModulesByArch[arch] = configEntryModule[where]; |
| 1737 | }); |
| 1738 | }); |
| 1739 | } |
| 1740 | |
| 1741 | return entryModulesByArch; |
| 1742 | } |
| 1743 | |
| 1744 | _getEntryModule( |
| 1745 | arch, |
no test coverage detected