I\'m using Webpack in my application, in which I create two entry points - bundle.js for all my JavaScript files/codes, and vendors.js for all libraries like jQuery and Reac
This works in webpack 3:
in the webpack.config.babel.js file:
resolve: { alias: { jquery: "jquery/src/jquery" }, .... }
And use ProvidePlugin
new webpack.ProvidePlugin({ '$': 'jquery', 'jQuery': 'jquery', })