Skip to content

Commit

Permalink
perf: fast array copy for installed transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Jun 2, 2024
1 parent 81d5e62 commit d4bb1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class Api<R extends RawApi = RawApi> {
this.raw = raw;
this.config = {
use,
installedTransformers: () => [...installedTransformers],
installedTransformers: () => installedTransformers.slice(),
};
}

Expand Down

0 comments on commit d4bb1b1

Please sign in to comment.