addEntry(context, entry, optionsOrName, callback) {
		// TODO webpack 6 remove
		const options =
			typeof optionsOrName === "object"
				? optionsOrName
				: { name: optionsOrName };

		this._addEntryItem(context, entry, "dependencies", options, callback);
	}
@param {string} context context path for entry
@param {Dependency} entry entry dependency that should be followed
@param {string | EntryOptions} optionsOrName options or deprecated name of entry
@param {ModuleCallback} callback callback function
@returns {void} returns