(function(factory) { if (typeof define === "function" && define.amd) { define(["jquery"], factory); } else { factory(jQuery); } }(function($) { $.extend({ say: function() { console.log("jquery say") } }) }));
require.config({ baseUrl: "./assets/js", paths: { "jquery": "jquery.min", "jquery-say": "jquery.say" } })
requirejs(["jquery","jquery-say"], function() { $.say(); });