2 * jQuery JavaScript Library v@VERSION
5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license
7 * https://jquery.org/license
11 // For ECMAScript module environments where a proper `window`
12 // is present, execute the factory and get jQuery.
13 // For environments that do not have a `window` with a `document`
14 // (such as Node.js), expose a factory as module.exports.
15 // This accentuates the need for the creation of a real `window`.
16 // e.g. var jQuery = require("jquery")(window);
17 // See ticket trac-14549 for more info.
18 var jQueryOrJQueryFactory = typeof window !== "undefined" && window.document ?
19 jQueryFactory( window, true ) :
22 throw new Error( "jQuery requires a window with a document" );
24 return jQueryFactory( w );
27 function jQueryFactory( window, noGlobal ) {
30 // build.js inserts compiled jQuery here
37 jQueryOrJQueryFactory as jQuery,
38 jQueryOrJQueryFactory as $
41 export default jQueryOrJQueryFactory;