ony3000 / prettier-plugin-merge

A Prettier plugin that sequentially merges the formatting results of other Prettier plugins.
MIT License
25 stars 1 forks source link

Performance issue #4

Closed ony3000 closed 1 year ago

ony3000 commented 1 year ago

Dependency information

Steps to reproduce

  1. Clone next-tailwind-template repository. (It currently has a dependency of prettier-plugin-merge@0.1.2)
  2. Install dependencies.
  3. Run prettier --write something in the terminal and check the execution time displayed.
  4. Install prettier-plugin-merge@0.2.0
  5. Run prettier --write something again in the terminal and check the execution time displayed.

The current behavior

It may vary slightly depending on the running environment, but when prettier-plugin-merge@0.2.0 was installed, it was over 100 milliseconds slower on average.

The expected behavior

There are no clear criteria for passing, but the faster the better.