Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Makes the loader resolution more tolerant #1606
(Sorry @iamnapo, it was very late at night and I initially opened this PR against your repo ...
Assuming that the repro provided by #1604 (comment) will be valid, a simple solution would be to be too laxist for now and just fallback to the hoisting resolution if the file-relative one doesn't find the loader - while still using the expected resolution as primary code path.
And then the next time eslint-import-utils receives a major bump, revert the try/catch block and go back to using exclusively createRequire.
4 similar comments