Y
Y
Yura Komarov2019-12-24 22:33:29
JavaScript
Yura Komarov, 2019-12-24 22:33:29

Did webpack build the js file correctly?

Good evening everyone.
I am learning webpack. So that all works for me, but here there was a question.
I imported jQuery and looked at what happened in the final file.
5e0266ea1ccff474765459.jpeg
As seen on the screenshot. jquery is imported, and webpack added sizzle.js during the build. I'm just used to the fact that if I include jQuery, then it's always one file and the question arises whether webpack added an extra file to the output file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danila, 2019-12-25
@Yurajun

webpack has nothing to do with it, jquery itself uses this library to implement CSS selectors.
It is divided into a separate library so that it can be used outside of jquery as needed.
When you connect it without webpack, it pulls this lib with it in the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question