DCE of JS libraries

I develop a threejs application and was wondering how the DCE gradle plugin works and if it can also process pure JS libraries.

  • Does it analyze any JS file in a gradle dependency?
  • Could I feed any kind of JS lib into it and get a reduction in size even though it was not initially create with kotlin?