Skip to content

Commit

Permalink
request-idle-callback.mjs: switch to a named export
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Aug 14, 2023
1 parent d322d00 commit 99cc680
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chunks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import throttle from 'throttles';
import {priority, supported} from './prefetch.mjs';
import requestIdleCallback from './request-idle-callback.mjs';
import {requestIdleCallback} from './request-idle-callback.mjs';

// Cache of URLs we've prefetched
// Its `size` is compared against `opts.limit` value.
Expand Down
2 changes: 1 addition & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import throttle from 'throttles';
import {priority, supported} from './prefetch.mjs';
import requestIdleCallback from './request-idle-callback.mjs';
import {requestIdleCallback} from './request-idle-callback.mjs';
import {addSpeculationRules, hasSpecRulesSupport} from './prerender.mjs';

// Cache of URLs we've prefetched
Expand Down
4 changes: 3 additions & 1 deletion src/request-idle-callback.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ const requestIdleCallback = window.requestIdleCallback ||
}, 1);
};

export default requestIdleCallback;
export {
requestIdleCallback,
};

0 comments on commit 99cc680

Please sign in to comment.