Instead, the configuration options are currently hard-coded in the source file which is built:
<?php
$options = array(
// CSS selector for the DOM element to observe for in-viewport links to prefetch.
'el' => '',
// Static array of URLs to prefetch (instead of observing `document` or a DOM element links in the viewport).
'urls' => array(),
// Integer for the `requestIdleCallback` timeout. A time in milliseconds by which the browser must execute prefetching. Defaults to 2 seconds.
'timeout' => 2000,
// Function for specifying a timeout. Defaults to `requestIdleCallback`. Can also be swapped out for a custom function like [networkIdleCallback](https://github.com/pastelsky/network-idle-callback) (see demos).
'timeoutFn' => 'requestIdleCallback',
// Boolean specifying preferred priority for fetches. Defaults to `false`. `true` will attempt to use the `fetch()` API where supported (rather than rel=prefetch).
'priority' => false,
// Static array of URL hostname strings that are allowed to be prefetched. Defaults to the same domain origin, which prevents _any_ cross-origin requests.
'origins' => array(
wp_parse_url( home_url(), PHP_URL_HOST ),
),
// Array of regex strings that further determines if a URL should be prefetched. These execute _after_ origin matching.
'ignores' => array(
// Do not preload feed links.
preg_quote( 'feed=', '/' ),
preg_quote( '/feed/', '/' ),
// Do not preload self.
preg_quote( wp_unslash( $_SERVER['REQUEST_URI'] ), '/' ) . '#',
// Ignore self with hash.
preg_quote( wp_unslash( $_SERVER['REQUEST_URI'] ), '/' ) . '#',
// Do not preload wp-content items (like downloads).
preg_quote( wp_parse_url( content_url(), PHP_URL_PATH ), '/' ),
),
);
/**
* Filters Quicklink options.
*
* @param array {
* Configuration options for quicklink.
*
* @param string[] $urls Array of URLs to prefetch (override)
* @param string $el CSS selector for the DOM element to prefetch in-viewport links for.
* @param bool $priority Attempt higher priority fetch (low or high). Default false.
* @param string[] $origins Allowed origins to prefetch (empty allows all). Defaults to host for current home URL.
* @param string[] $ignores Regular expression patterns to determine whether a URL is ignored. Runs after origin checks.
* @param int $timeout Timeout after which prefetching will occur.
* @param string $timeoutFn Custom timeout function.
* }
*/
$options = apply_filters( 'quicklink_options', $options );
I can open a PR if you are keen.