I do not quite get why we do this using provideplugin.
plugins.push(new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
React: 'react'
}));
I know benefits of creating chunks of code. But I want to understand proper ways to create them and would like to know how webpacks makes them work internally.