Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Last active December 11, 2015 04:59
Show Gist options
  • Select an option

  • Save tugberkugurlu/4549218 to your computer and use it in GitHub Desktop.

Select an option

Save tugberkugurlu/4549218 to your computer and use it in GitHub Desktop.
define3rdPartyModules requirejs
(function () {
var root = this;
define3rdPartyModules();
function define3rdPartyModules() {
// These are already loaded via bundles.
// We define them and put them in the root object.
define('jquery', [], function () { return root.jQuery; });
define('ko', [], function () { return root.ko; });
define('amplify', [], function () { return root.amplify; });
define('moment', [], function () { return root.moment; });
define('sammy', [], function () { return root.Sammy; });
define('toastr', [], function () { return root.toastr; });
define('underscore', [], function () { return root._; });
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment