A
A
alex4answ2020-05-27 18:44:05
Node.js
alex4answ, 2020-05-27 18:44:05

Why webpack for Node.js?

Good afternoon, what is the purpose of webpack for Node.js ?

So far, I have compiled a config only for:
1. eslint
2. jest testing
3. because it seems to be necessary (basic)

In general, only as a task runner.
I don’t quite understand whether it is needed there at all or not, for example, you can tweak babel, but for Node we always know the version and what will work and what won’t.

In general, everything is as usual here, something new must be used, why? - I don't understand yet.
Please point me in the direction, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2020-05-27
@Robur

not needed. Especially if you do not have an answer to the question "why". Why don't you use it.
Unless if you make a library and confuse something very confused. But even there, there is usually enough babel to assemble several versions for different nodes.
There is also rollup which claims (stated when I looked at it a couple of years ago) that it improves something there - it makes it easier to create libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question