Skip to content

ogygia warning

barrels_report

barrels: ‹importers› of ‹files› files rewritten — ‹imports› barrel imports → leaves (‹names› names), ‹barrels› barrels bypassed, ‹seconds› s first to last transform

barrels() rewrote imports from index files (barrels) to the files that define each name, so an island ships only what it uses. The report counts the rewrites and lists the barrels that were bypassed the most, with how many files imported through each.

barrels({ report: 'all' }) lists every barrel, report: false turns the report off, and debug: true prints each rewrite as it happens.

Every error and warning