Correct me if I'm wrong, but AFAIK webpack
implements a module system on the browser, which historically never had a module system.
But Node.js
has a module system. You can use commonjs require
or use ES6 imports
and it will work fine. I've seen lots of posts over the internet on how to implement webpack
bundling to a Node.js backend code.
Is this even recommended? Is it a good practice at all?
I think that there is a clear answer to this question out there. And it's not opinion-based.