title: I got the problem with AJAX request (OctoberCMS)
body: <p>Laravel / OctoberCMS
  $.request is not a function</p>
  
  <p>I got a problem with with AJAX request inside file 'dist/app.js' (created by webpack).</p>
  
  <pre><code>app.js file:
  import 'popper.js';
  import 'bootstrap';
  
  $(function () {
  $.request('Cart::onAdd', {
  'update': {'cart-items': '.cart-item-wrapper'}
  });
  });
  </code></pre>
  
  <p>that throws an error:
  jQuery.Deferred exception: $.request is not a function TypeError: $.request is not a function
  at HTMLDocument. (<a href="http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:1232:5" rel="nofollow noreferrer">http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:1232:5</a>)
  at mightThrow (<a href="http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:9406:29" rel="nofollow noreferrer">http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:9406:29</a>)
  at process (<a href="http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:9474:12" rel="nofollow noreferrer">http://localhost/dental/combine/b71d14df8c4d4ddba2c49a7f4750930f-1567079039.js:9474:12</a>) undefined</p>
  
  <p>when i put this in html file (layout.htm)</p>
  
  <pre><code> &lt;script type="text/javascript" src="{{ [
          '@jquery',
          '@framework',
          '@framework.extras',
          'assets/dist/js/app.js',
          ]|theme }}.js"&gt;
      &lt;/script&gt;
      {% scripts %}
      &lt;script&gt;
          $(function () {
              $.request('Cart::onAdd', {
                  'update': {'cart-items': '.cart-item-wrapper'}
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>it works correct</p>
  
  <p>{% put script %} also works correct</p>
  
  <p>The problem is with the file generated by webpack</p>
  
  <p>Jquery in webpack is fine</p>