Core: Use named exports in `src/`
[jquery.git] / src / wrapper.js
blobfa8240e1e3c3882912b997806f3c963b66a2276d
1 /*!
2  * jQuery JavaScript Library v@VERSION
3  * https://jquery.com/
4  *
5  * Copyright OpenJS Foundation and other contributors
6  * Released under the MIT license
7  * https://jquery.org/license
8  *
9  * Date: @DATE
10  */
11 ( function( global, factory ) {
13         "use strict";
15         if ( typeof module === "object" && typeof module.exports === "object" ) {
17                 // For CommonJS and CommonJS-like environments where a proper `window`
18                 // is present, execute the factory and get jQuery.
19                 // For environments that do not have a `window` with a `document`
20                 // (such as Node.js), expose a factory as module.exports.
21                 // This accentuates the need for the creation of a real `window`.
22                 // e.g. var jQuery = require("jquery")(window);
23                 // See ticket trac-14549 for more info.
24                 module.exports = global.document ?
25                         factory( global, true ) :
26                         function( w ) {
27                                 if ( !w.document ) {
28                                         throw new Error( "jQuery requires a window with a document" );
29                                 }
30                                 return factory( w );
31                         };
32         } else {
33                 factory( global );
34         }
36 // Pass this if window is not defined yet
37 } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
39 "use strict";
41 // @CODE
42 // build.js inserts compiled jQuery here
44 return jQuery;
46 } );