When building a project using a webpack, the question arose. How to import jquery into the necessary modules.
I can do this globally using webpack.ProvidePlugin, according to the instructions from the webpack documentation:
plugins: [ new webpack.ProvidePlugin({ $: "jquery/dist/jquery.min.js" }), ], resolve: { moduleDirectories: ['node_modules'], extension: ['', '.js', '.styl'] }, But how to do it explicitly for the right modules?