A problem with dependent installation of npm packages

I installed a plug-in through the npm package. The plug-in relies on jquery, so will jquery be loaded into my project when I finally package it through webpack?


depends on how the dependency is. If it is a logical dependency of the code, it will not be automatically packaged. It has to be displayed in package.json to write dependencies. And refer to it in the code before it can be packaged normally

Menu