exports.$ = exports.jQuery = require("./jquery.js");

var jQuery = require("./jquery.js");
var global = this;

// Provide values for the exported variables of the jquery package.
exports.$ = exports.jQuery = jQuery;

// There's no stopping legacy code from referring to window.$ or
// window.jQuery, so we have to keep defining those properties globally,
// but at least the exports of this package will be reliable.
global.$ = global.jQuery = jQuery;

Define $ and jQuery globally, as they used to be.
Define $ and jQuery globally, as they used to be.

Fixes #5819.
