MCPcopy
hub / github.com/webpack/webpack / getReturn

Method getReturn

lib/ContextModule.js:796–803  ·  view source on GitHub ↗

* @param {FakeMapType} type type * @param {boolean=} asyncModule is async module * @returns {string} return result

(type, asyncModule)

Source from the content-addressed store, hash-verified

794 * @returns {string} return result
795 */
796 getReturn(type, asyncModule) {
797 if (type === 9) {
798 return `${RuntimeGlobals.require}(id)`;
799 }
800 return `${RuntimeGlobals.createFakeNamespaceObject}(id, ${type}${
801 asyncModule ? " | 16" : ""
802 })`;
803 }
804
805 /**
806 * @param {FakeMap | FakeMapType} fakeMap fake map

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected