We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112a0bf commit fa64e29Copy full SHA for fa64e29
src/ExportMap.js
@@ -310,11 +310,18 @@ ExportMap.for = function (context) {
310
return null
311
}
312
313
+ // check for and cache ignore
314
+ if (isIgnored(path, context)) {
315
+ log('ignored path due to ignore settings:', path)
316
+ exportCache.set(cacheKey, null)
317
+ return null
318
+ }
319
+
320
const content = fs.readFileSync(path, { encoding: 'utf8' })
321
- // check for and cache ignore
- if (isIgnored(path, context) || !unambiguous.test(content)) {
- log('ignored path due to unambiguous regex or ignore settings:', path)
322
+ // check for and cache unambigious modules
323
+ if (!unambiguous.test(content)) {
324
+ log('ignored path due to unambiguous regex:', path)
325
exportCache.set(cacheKey, null)
326
327
0 commit comments