Re:Tiny Treeshaker: JavaScript tree shaking in 200 lines of ...
by pwdisswordfish8 on Tuesday June 29, 2021 @08:08AM
(#27674704)
s/for JS/on NPM/
There's no reason you can't write JS the same way you would write Java or C++. (And if you were writing "serious" applications in JS that weren't web apps before NodeJS came along, you did. Of course, you still can, too.)
It could be, but I don't see it as too practical as dependencies are very likely quite transparent and don't themselves rely on many dependencies. But for JS?