M
M
Mesuti2019-11-14 14:24:52
webpack
Mesuti, 2019-11-14 14:24:52

How to remove dependencies in compiled JS file from Webpack?

Webpack after compiling JavaScript leaves a large piece of code at the beginning.
As far as I understand, these are module dependencies and general technical information.
Is it really needed in production? even if I write a very small script
And how to remove it?
Tried specifying different devtools from documentation , doesn't help.
5dcd3983c9b1c126684382.png
This is with mode: production
5dcdd06056722216328292.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question