MCPcopy
hub / github.com/webpack/webpack / isExportInlined

Function isExportInlined

lib/optimize/InlineExports.js:165–169  ·  view source on GitHub ↗
(moduleGraph, module, ids, runtime)

Source from the content-addressed store, hash-verified

163 * @returns {boolean} true if the export is inlined
164 */
165const isExportInlined = (moduleGraph, module, ids, runtime) => {
166 if (!ids || ids.length === 0) return false;
167 if (!isInlineEnabled(module)) return false;
168 return moduleGraph.getExportsInfo(module).hasInlinedUsedName(ids, runtime);
169};
170
171module.exports.InlinedUsedName = InlinedUsedName;
172module.exports.InlinedValue = InlinedValue;

Callers 3

getConditionMethod · 0.85
getConditionMethod · 0.85
applyMethod · 0.85

Calls 3

isInlineEnabledFunction · 0.85
hasInlinedUsedNameMethod · 0.80
getExportsInfoMethod · 0.80

Tested by

no test coverage detected