A
A
Ahegao2018-12-12 02:53:06
webpack
Ahegao, 2018-12-12 02:53:06

Can npm packages break a webpack build?

I use the webpack assembler, install different packages, some are simply added, some besides themselves, add a few more dependencies, others can generally add and update something.
There were no problems with something not being built, but the question still arose:
If I don’t control something, in this case what happens in the node_modules folder, should I care?
Or do I just not understand how webpack works and can install any number of packages without any problems and it will still collect everything for me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anna Shatkovskaya, 2018-12-20
@Miki8887

Webpack just builds the packages you write, and that's what it will try to build anyway. If he updates modules, then he asks you whether you agree or not. Certain packages have version dependencies and this can lead to compatibility issues, you should keep an eye on this. And in a good way to remove everything superfluous, for yourself, the purity of the code. I don’t understand why you need extra packages in the assembly, create confusion and take up space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question