Skip to content

Commit

Permalink
feat(transform): hide content of ignored files from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Anber committed Feb 6, 2024
1 parent c4cc522 commit 7aa81af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/transform/src/transform/Entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export class Entrypoint extends BaseEntrypoint {
services.cache.invalidateIfChanged(name, this.loadedAndParsed.code);
}

this.log.extend('source')(
'created %s (%o)\n%s',
name,
only,
this.originalCode || EMPTY_FILE
);
const code =
this.loadedAndParsed.evaluator === 'ignored'
? '[IGNORED]'
: this.originalCode || EMPTY_FILE;

this.log.extend('source')('created %s (%o)\n%s', name, only, code);
}

public get ignored() {
Expand Down

0 comments on commit 7aa81af

Please sign in to comment.