getSourceForAmdOrUmdExternal = (
	id,
	optional,
	request,
	runtimeTemplate
) => {
	const externalVariable = `__WEBPACK_EXTERNAL_MODULE_${Template.toIdentifier(
		`${id}`
	)}__`;
	return {
		init: optional
			? checkExternalVariable(
					externalVariable,
					Array.isArray(request) ? request.join(".") : request,
					runtimeTemplate
				)
			: undefined,
		expression: externalVariable
	};
}
@param {string|number} id the module id
@param {boolean} optional true, if the module is optional
@param {string|string[]} request the request path
@param {RuntimeTemplate} runtimeTemplate the runtime template
@returns {SourceData} the generated source