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
There are two techniques to eliminate dead code and it is possible using javascript build systems- webpack.
Dead code elimination (DCE) : compiler optimisation- It excludes which is not needed in the program.
Tree Shaking It works in reverse direction, includes only what is actually needed in the program.
Click here for detailed configuration.