Remove unused javascript code based on coverage report

后端 未结 6 701
北海茫月
北海茫月 2021-02-05 07:45

There is a big javascript library (~ 40 000 lines of code) and an application which uses less than 50% of the library\'s code.

There is a test which uti

6条回答
  •  梦毁少年i
    2021-02-05 08:06

    You can try to use:

    npm install -g fixmyjs
    fixmyjs 
    

    This is the fixmyjs project

    it is a great tool for cleanup, it appears to lack compatibility with some versions of ecmascript

提交回复
热议问题