MCPcopy
hub / github.com/meteor/meteor / _getEntryModulesByArch

Method _getEntryModulesByArch

tools/project-context.js:1720–1742  ·  view source on GitHub ↗
(...keys)

Source from the content-addressed store, hash-verified

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,

Callers 2

getMainModulesByArchMethod · 0.95
getTestModulesByArchMethod · 0.95

Calls 3

getMethod · 0.95
mapWhereToArchesFunction · 0.90
forEachMethod · 0.45

Tested by

no test coverage detected