MCPcopy
hub / github.com/webpack/webpack / getExportsType

Function getExportsType

lib/optimize/ConcatenatedModule.js:304–315  ·  view source on GitHub ↗
(moduleGraph, info, strict)

Source from the content-addressed store, hash-verified

302 * @returns {ExportsType} the exports type
303 */
304const getExportsType = (moduleGraph, info, strict) => {
305 if (strict) {
306 if (info.exportsTypeStrict === undefined) {
307 info.exportsTypeStrict = info.module.getExportsType(moduleGraph, true);
308 }
309 return info.exportsTypeStrict;
310 }
311 if (info.exportsTypeNonStrict === undefined) {
312 info.exportsTypeNonStrict = info.module.getExportsType(moduleGraph, false);
313 }
314 return info.exportsTypeNonStrict;
315};
316
317/**
318 * @param {ModuleGraph} moduleGraph the module graph

Callers 2

getFinalBindingFunction · 0.85
codeGenerationMethod · 0.85

Calls 1

getExportsTypeMethod · 0.45

Tested by

no test coverage detected