__WEBPACK_AMD_DEFINE_ARRAY__ is not defined import Jquery with webpack <p>I have tried severally without luck importing jquery to global scope using webpack with below methods , but all throw errors :</p> <p>Try 1 : Expose Loader</p> <p>Used it in my webpack.config as below </p> <pre><code>{ test: require.resolve('jquery'), loader: 'expose?$!expose?jQuery' }, </code></pre> <p>Throws error $ is not defined when i console.log(typeof $)</p> <p>Try 2 : Webpack ProvidePlugin </p> <p>Used it in my webpack.config as below </p> <pre><code>plugins: [ new webpack.ProvidePlugin({ '$': 'jquery', 'jQuery': 'jquery', 'window.jQuery': 'jquery' }) ] </code></pre> <p>throws error <strong>WEBPACK_AMD_DEFINE_ARRAY</strong> is not defined when hot-reloading </p> <p>Am using vue.js V2</p>