static createDependency(entry, options) {
		const dep = new EntryDependency(entry);
		// TODO webpack 6 remove string option
		dep.loc = {
			name:
				typeof options === "object"
					? /** @type {string} */ (options.name)
					: options
		};
		return dep;
	}
@param {string} entry entry request
@param {EntryOptions | string} options entry options (passing string is deprecated)
@returns {EntryDependency} the dependency