title: What is this define() function in jQuery module?
body: <p>I'm trying to make a custom jQuery build with Webpack by importing only the needed <a href="https://github.com/jquery/jquery#modules" rel="nofollow noreferrer">modules</a>. So I created a new js file like this</p>
  <pre><code>// custom-jquery.js
  define([
      '../../node_modules/jquery/src/core',
      '../../node_modules/jquery/src/selector',
      ...
  
  ], function (jQuery) {
   'use strict';
  
   return jQuery;
  </code></pre>
  <p>});</p>
  <p>Then I import it to my main javascript file:</p>
  <pre><code>import './custom-jquery.js'
  </code></pre>
  <p>It works perfectly, but I want to use <code>import</code> to import jQuery modules from <code>node_modules</code>. I don't know how to do that because of this <code>define()</code> syntax. Does anyone have an idea how? Thanks</p>