Bug Description
When employing ignorePatterns alongside contentPatterns or sourceReplacePatterns, and when the target files import a library from the node_modules, the build process encounters a failure.
Steps to Reproduce
Uncomment the tests marked with test.todo in lib/__tests__/index.test.ts.
Desired Outcome
This scenario should be managed smoothly without generating any errors.