Skip to content

Commit

Permalink
Add benchmarks for transforms and linters so they show up in Benchmar…
Browse files Browse the repository at this point in the history
…king output
  • Loading branch information
zachleat committed Dec 6, 2022
1 parent 7c935a4 commit c1e49b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/UserConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,19 @@ class UserConfig {
addTransform(name, callback) {
name = this.getNamespacedName(name);

this.transforms[name] = callback;
this.transforms[name] = this.benchmarks.config.add(
`"${name}" Transform`,
callback
);
}

addLinter(name, callback) {
name = this.getNamespacedName(name);

this.linters[name] = callback;
this.linters[name] = this.benchmarks.config.add(
`"${name}" Linter`,
callback
);
}

addLayoutAlias(from, to) {
Expand Down

0 comments on commit c1e49b5

Please sign in to comment.