mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
14 lines
304 B
JavaScript
14 lines
304 B
JavaScript
|
let defaultResolver;
|
||
|
|
||
|
module.exports = () => {
|
||
|
if (!defaultResolver) {
|
||
|
try {
|
||
|
defaultResolver = require(`jest-resolve/build/defaultResolver`).default;
|
||
|
} catch (error) {
|
||
|
defaultResolver = require(`jest-resolve/build/default_resolver`).default;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return defaultResolver;
|
||
|
};
|