14 lines
304 B
JavaScript
Executable File
14 lines
304 B
JavaScript
Executable File
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;
|
|
};
|